Closed ulisescarreonalvarez closed 5 years ago
Try to log the current timestamp when that error happens. If the issuer and the verifier systems are not in clock sync it might happen that from the verifier point of view it's still too soon to allow the token to be used.
You could tweak a bit that using the option clockTolerance
or ignoreNotBefore
if you want to completely skip the nbf
validation claim.
I have a laravel lumen API, we are making some login requests and we wanna validate the signature of the token.
Actually we have our .env like this:
And our request send us the token. Actually token looks like:
If we verify the token and the signature on JWT.io we get "Signature verified"
But on react whe we verify with:
We get this message "jwt not active", on the documentation it saids:
Thrown if current time is before the nbf claim.
What am i missing? JWT Node is checking the claims with another date?