danielblagy/budget-app

implement v1/access/refresh

danielblagy opened this issue · 2 comments

  1. validate resfresh token
  2. blacklist access & refresh tokens (put them in persistent redis store with expiration)
  3. issue new access & refresh tokens

Blocked by #32

the logic on client side would be: decode access token, check expiration, if it expired, try to refresh tokens by calling v1/access/refresh

FOR QA:

Implemented POST v1/access/refresh for refreshing jwt tokens:

1.checks the validity of a refresh token (including the blacklist check)
2. adds current access & refresh token pair to the blacklist
3. issues new access & refresh token pair