How to handle the cookie of my jwt?

0

I have an api with jwt that gives me a token of authorization to be able to navigate in the application that consumes the api, this token has an expiration date and it is here my question. How can I handle this from my client application, to validate at what time token expiro? and be able to logout the user.

    
asked by vcasas 12.06.2018 в 00:17
source

1 answer

0

The expiation date is a token field . Once you have decoded the token in the client you can access this field and compare with the current date to determine if it is expired or not.

    
answered by 12.06.2018 в 13:26