Skip to main content

Token Refresh Guide

Access tokens have a short lifespan (15 minutes) for security reasons. Refresh tokens (valid for 30 days) allow client applications to renew expired access tokens silently without prompting the user to re-login.

The Refresh Request

Success Response (200 OK)


Client-Side Interceptor Pattern (Dart / Axios)

When making HTTP requests, catch 401 Unauthorized errors, invoke the refresh endpoint once, update the stored access token, and retry the original request.