/v1/auth/refresh
POST
/v1/auth/refresh
const url = 'http://localhost:8787/v1/auth/refresh';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/auth/refreshResponses
Section titled “Responses”New access + refresh cookies issued; old refresh token invalidated.
Media typeapplication/json
object
accessTokenExpiresAt
required
string
Examplegenerated
{ "accessTokenExpiresAt": "example"}Missing/invalid/expired refresh token, OR reuse of an already-rotated token — the family is revoked either way and the caller must treat this as a full logout.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "missing_refresh_token"}