Skip to content

Refresh Token

Medium — good to knowSecurity

ELI5 — The Vibe Check

A Refresh Token is a long-lived secret that gets you new access tokens without re-logging in. Your access token expires every 15 minutes, but your refresh token lasts days or weeks. It's like having a VIP card that lets you get fresh day passes without going through registration again.

Real Talk

Refresh tokens are long-lived credentials used to obtain new access tokens without re-authentication. They're stored securely (HttpOnly cookies, secure storage), never sent to resource servers, and should be rotated on each use. If compromised, they represent a higher risk due to their longer lifetime.

When You'll Hear This

"The refresh token is stored in an HttpOnly cookie — JavaScript can't touch it." / "When the access token expires, the client silently uses the refresh token to get a new one."

Made with passive-aggressive love by manoga.digital. Powered by Claude.