F
F
FairyFox57002020-04-23 15:34:51
ASP.NET
FairyFox5700, 2020-04-23 15:34:51

How and when should a jwt token be issued to a user and a refresh token generated?

If I am already generating a token when a user logs in, then when will I know that he needs to refresh the token?
The token should be issued to the user if he is registered in one web application (it has its own login method to the application) and accesses some kind of api (jwt tokens), then you need to log in the user again in this system and then issue him a token to access resources?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-04-23
@yarosroman

When a token is generated, its validity period is set. Usually, a separate controller is made in api for logging in and issuing a token. The phrase is not clear, it is registered in one, and then register again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question