Skip to main content

Refresh the access token

POST 

/auth/refresh

Refresh token. Not your access token — the refresh token, from the HttpOnly cookie in a browser or from the login response body on native.

Trades a refresh token for a fresh access token, without asking the person for their password again.

The refresh token rotates. Every call returns a new one — in the Set-Cookie for browsers, in the body for X-Client: mobile — and the one you sent is spent. Store the new one before the next call.

Presenting a token that was already spent is treated as theft, not as a retry: the whole session family is revoked and the person has to sign in again. Do not send refreshes concurrently from two places.

Request

Responses

OK