Open VladPavliuk opened 5 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Subject of the issue
Hi! I tried to add a few test methods each of which tests - is user's auth status. After successfully received jwt token I've faced with the next problem - I get
false
each time when JWTAuth::getToken() is called in the tested method though,Authorization
header withBearer {token}
value is present in the request to the tested api endpoint.Your environment
Steps to reproduce
Try to call
JWTAuth::getToken()
in the tested method (in this case it's 'store' method in 'ProductsController').Launch the test method:
./vendor/bin/phpunit --filter myTest
Expected behaviour
I would like to see the token which I've put into request 'Authorization' header in my tested method (in this case it's 'store' method in 'ProductsController') if
JWTAuth::getToken()
is called there.Actual behaviour
I get
false
whenJWTAuth::getToken()
is called in my tested method.