/jwt-refreshtoken

User Authentication with JWT tokens and refresh tokens

Primary LanguageJavaScript

User Authentication System with Headless JsonwebTokens with implementation of refresh tokens with httpOnly cookie for persisted user auth.

  1. Before 10 to 20 seconds AcessTokens exprires, it would send request for RefreshTokens from client side.
  2. Server would issue new AcessTokens with short expire time and same process as 1 would repeat.
  3. Every time server would send both AcessTokens and RefreshToken.