-
In current implementation we refresh token if it's valid and expired, but what's point to refresh token without dividing on access and refresh tokens? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
My view on this - the refresh token can be compromised in the same way as the auth token. They both send the same "channel" and are stored similarly. Revoking the compromised token is not different from revoking the refresh token. With such a "blocked" token, users won't be able to stay logged in. Unless I miss the point, it is not apparent what benefit the refresh token brings compared to the currently implemented "automatic refresh auth token" schema. The popular claim "you don't send refresh tokens that often" doesn't make much sense to me and I don't get how this is even related to a more/less secure system. However, if you can think of any practical benefits I'm missing, pls share, and we can consider implementation. |
Beta Was this translation helpful? Give feedback.
-
moved to discussions |
Beta Was this translation helpful? Give feedback.
My view on this - the refresh token can be compromised in the same way as the auth token. They both send the same "channel" and are stored similarly. Revoking the compromised token is not different from revoking the refresh token. With such a "blocked" token, users won't be able to stay logged in.
Unless I miss the point, it is not apparent what benefit the refresh token brings compared to the currently implemented "automatic refresh auth token" schema. The popular claim "you don't send refresh tokens that often" doesn't make much sense to me and I don't get how this is even related to a more/less secure system.
However, if you can think of any practical benefits I'm missing, pls share, a…