You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to JWT standard the 'iat' claim i optional. When decoding token (without 'iat') using SimpleJWS then verification of the signature fails. There is a function generateSigninInput in JWT class that return the input that the signature is verified against.
But when decoding token (without iat claim) with SimpleJWS, then 'iat' is automatically added to the decoded payload in setPayload method of SimpleJWS so the signinginput is different than was originally in token.
same problem here.
if we used a token generated by another system that does not had iat, signature verification fails.
Maybe adding iat claim must be only done on token creation. Or maybe not use iat at all.
According to JWT standard the 'iat' claim i optional. When decoding token (without 'iat') using SimpleJWS then verification of the signature fails. There is a function generateSigninInput in JWT class that return the input that the signature is verified against.
But when decoding token (without iat claim) with SimpleJWS, then 'iat' is automatically added to the decoded payload in setPayload method of SimpleJWS so the signinginput is different than was originally in token.
The text was updated successfully, but these errors were encountered: