Open gandra opened 7 years ago
I saw same problem, any ideal?
am using xampp on windows platform and I was faced with the same problem but after a large number of attempts and debugging I found the following: The value of the [exp] expected to be [ Timestamp in milliseconds ] like that
1541003656000
but my server provide Timestamp in Different format some thing like that
1541003757
I have to modify
public function exp() { return Utils::now()->addMinutes($this->ttl)->getTimestamp(); }
In vendor/tymon/jwt-auth/src/Claims/Factory.php
To be
public function exp() { return round(microtime(true) * 1000); }
And Now It Working Successfully @tymondesigns
@ngodinhngoc the JWT
package expecting exp
value as Timestamp in milliseconds
some thing like 1541003656000
Facing same issue on laravel 6 using version 1.0.0-rc.5. @yehiasalah solution helped.
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.
Hi!
I have laravel 5.4 app as backend APP using tymon/jwt-auth for JWT. App works fine on linux box but on windows I have
InvalidClaimException
.Login is sent from angular 2 app via REST api.
Here is the stack trace:
Any idea why?