I
I
IvanN7772019-03-04 08:34:01
JSON Web Token
IvanN777, 2019-03-04 08:34:01

I don’t understand how to update JWT, refresh token, what is unusual about it?

There is a token with a user ID.
There is a refresh token.
When the token expires, we use the refresh token to refresh the user's token.
It is also written in theory that if the user's token is hacked, then the refresh will not allow the attacker to update and work further.
But a question. What is the difference between a regular jwt token and a jwt refresh token.
Why just do the obsolescence of the token, if it steals the usual one, then it will steal the refresh token.
Or should it be stored in some other way.
I do not understand the principle of its protection.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-03-04
@alexr64

I do not understand the principle of its protection.

refresh token is not given to everyone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question