-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Token invalid | Token Signature could not be verified. #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
I noticed vendor\tymon\jwt-auth\src\Providers\JWT\Namshi.php decode function takes in my token as: If I add a rather blunt workaround:
My tests go green. |
Went with this for now:
And in jwt.php config file:
And in tests:
|
I had been experiencing this issue as well, however I discovered the issue is having a colon |
Thanks for the tip. |
@MitchellMcKenna Hello, I'm facing this problem as well, could you please provide the details for the fix. I'm not so familiar with laravel. Thank you. |
"setting the api secret in jwt.php" in fact on config/jwt.php, there is the line'secret' => env('JWT_SECRET'),, Generate the key with this helper remember to have your .env file in your project if you dont have do |
Also, there are installation instructions here: https://github.com/tymondesigns/jwt-auth/wiki/Installation |
Followed this link TokenInvalidExceptionToken Signature could not be verified.in NamshiAdapter.php (line 71) ` |
Hey all.. for some reason this started working when I changed my auth header to be key: Previously I used My composer.json:
|
Thanks so much. Removing the brackets '{}' worked. |
I was getting this in Laravel 5.5 randomly. I ran |
I solve this issue running php artisan jwt:secret |
@elliottjro Man thanks so much! removing the brackets in postman worked for me! |
This saves me. I'm so stupid to misunderstanding the {} in the official documents. |
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. |
I had been experiencing this issue as well. However I clear my browser cookies and it works.
|
I had been experiencing this issue as well. However I clear my browser cookies and it works.
|
Here same issue: i get randomly
A pretty old project, i know...
|
I'm getting pretty tired of this error.. Stuck for 2 days now.
I do receive a token on valid credentials, but my token stays invalid, no matter if I pass it through url parameter (?token=[token]) or as Auth header (Bearer: [token]).
Anyone still experiencing this? I followed everything in the tutorial. Also configured both .htaccess in my public folder, and in my apache configuration.
Going to this route returns
For lookups, here is my authentication method from my AuthController.php
My routes middleware group:
Route::group(['middleware' => ['jwt.auth', 'jwt.refresh']], function() {
There must be something wrong? Is this just a minor bug or am I missing something?
The text was updated successfully, but these errors were encountered: