IT lexicon › Security › Refresh token

Refresh token

Security På svenska → Updated: 2026-05-24

A long-lived token (days/weeks/months) exchanged for a new access token when the old one expires — without asking the user to log in again.

Sent to the /token endpoint with grant_type=refresh_token. Best practice: rotation — every use issues both a new access token AND a new refresh token, the old refresh becomes invalidated. Plus reuse detection: if an old refresh is used it's been stolen ⇒ invalidate the whole token family. Stored typically in httponly secure cookie (for web) or secure storage (mobile keychain). Not in localStorage — XSS risk.

← Back to the lexicon