Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
We are using JWT token for authorization but getting 401 Unauthorized error
Here are details of JWT we are trying to use
Is there any way to undestand what exactly is wrong with JWT?
Thank you,
Anton
@akhramovich - the 'nbf' date/time indicates that the JWT cannot be used for authorization before that timestamp. Your 'nbf' should be the moment you want that token to be valid for authentication, and the 'exp' cannot be greater than 60m later.
This means that a token can only be used to initiate a session within that 60m window, it does not dictate the length of a valid session once it has been established.
@akhramovich - the 'nbf' date/time indicates that the JWT cannot be used for authorization before that timestamp. Your 'nbf' should be the moment you want that token to be valid for authentication, and the 'exp' cannot be greater than 60m later.
This means that a token can only be used to initiate a session within that 60m window, it does not dictate the length of a valid session once it has been established.
Thank You!