feat(security): add refresh token capability to API #52
Reference in New Issue
Block a user
Delete Branch "feat/add-refresh-tokens-backend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add backend refresh tokens
Adds rotating server-side refresh tokens so the access token can be short-lived (5m) without forcing frequent re-login.
POST /api/v1/users/refreshexchanges therefreshTokencookie for a new refresh token and JWTGoogleVerifierService; config moved to a validatedAuthPropertiesV2__refresh_tokens.sqladdstoken_familiesandrefresh_tokensBreaking changes
tokenrenamed toaccessToken(existing sessions are logged out)/loginand/refreshno longer return the JWT in the body, only{ accessTokenExpiresIn }jwt.secret.key/jwt.expirationreplaced byapp.security.*;JWT_SECRET_KEYmust be 32+ chars/refreshon 401 or before the access token expiresWIP: feat(security): add refresh token capability to APIto feat(security): add refresh token capability to API