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
Could you tell me how does it generate different token when using the same head, payload, secret but different time ?
When the time interval is less than 200ms,it may occure below.
Could you tell me how long the least time interval it will not occur the same token??
The text was updated successfully, but these errors were encountered:
garysdevil
changed the title
When the time interval is very short,it will generate the same token in the certain condiction!!
When the time interval is very short,it will generate the same token in the certain condiction ?
Jan 24, 2019
By default, every second. The reason is that only the iat ("issued at" claim) would be different, it holds the time in seconds when the token was issued.
If you need to have unique tokens you could use the jwtid option with a unique identifier for each token that will set the jti claim in the token.
@garysdevil HS and RS signatures do not include any randomly generated padding, hence their signature is the same given the same payload (they are reproducible)
To get a random signature regardless of the payload you should be using ES or PS signatures.
Could you tell me how does it generate different token when using the same head, payload, secret but different time ?

When the time interval is less than 200ms,it may occure below.
Could you tell me how long the least time interval it will not occur the same token??
The text was updated successfully, but these errors were encountered: