Skip to content

A perpetual session for mobile app #1603

Answered by aeneasr
splaunov asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so let's go into refresh tokens, access tokens, session tokens, long living sessions, and so on. There are a few things you need to know before applying security practices from model A to model B.

Refresh Tokens are a concept from OAuth2 (model A). They have been introduced because usually Access Tokens are pass-by-value. This means that we have an Access Token which is a JWT so we can verify it by checking the signature. This makes invalidating the token tricky, because we need a list of tokens which we no longer want to be valid, which in turn requires to do a look up of that list.

Refresh Tokens (sort of) resolve this. If a refresh token is no longer valid - because it was invalida…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@splaunov
Comment options

@BrianEstrada
Comment options

@aeneasr
Comment options

@aeneasr
Comment options

Comment options

You must be logged in to vote
2 replies
@splaunov
Comment options

@Mimameid
Comment options

Answer selected by zepatrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants