Xavek / jwt-refreshtoken

User Authentication with JWT tokens and refresh tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

User Authentication with JWT tokens and refresh tokens


Languages

Language:JavaScript 100.0%