Open williamcolbert opened 7 years ago
I'm having the same issue as well because we wanted to get rid of the nbf claim. We've resulted to editing the source code.
Ran into this issue again (probably our 5th or so time) with another developer on my team and I figured this would have been fixed by now
I noticed that the expiration checks and required claims were not being enforced. I generated a token that only included the following payload
And then used the following code to retrieve the authenticated user:
Expected Result: I expected a token_invalid exception to be thrown, because the payload didn't include the required claims. But I actually get the user's database record
Configuration:
Using: jwt-auth: 1.0.0.beta.3 laravel: 5.4
app.php includes :
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Route:
Auth Config:
Config jwt.php