POST /auth/refresh
(1) cookie ausente → 401 `missing_cookie`; (2) hash não vivo → refreshNotLive decide entre janela de graça multi-tab (BUG-W-10, 200 `rota...
- Access: Public
- Service:
https://auth-api.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
(1) cookie ausente → 401 missing_cookie; (2) hash não vivo → refreshNotLive decide entre janela de graça multi-tab (BUG-W-10, 200 rotation_race_grace_window), REUSO de token já rotacionado fora da graça (T-006: revoga a família inteira, audita, 401 reuse_detected) ou 401 not_found_or_expired; (3) família além do teto ABSOLUTO (90d desde o login) → revoga a família, 401 absolute_timeout; (4) idle da policy do time → revoga a família, 401 idle_timeout; (5) rotaciona (a filha herda a família) com expiração = min(agora+ocioso 7d, início+absoluto); corrida concorrente → 401 rotation_race; (6) assina o access com sid = família; (7) cookies com MaxAge do refresh = expiração da filha.
refresh rotaciona o refresh_token existente por um novo par (access + refresh opaco), dentro da família (sessão) do token apresentado.
Retorno: 200 {ok:true}; 401 com error opaco + reason; 500 opaco em falha interna (o detalhe vai pro log, não pro cliente).
Parameters
No parameters.
Request body
Corpo JSON. O schema detalhado deste endpoint ainda não está tipado na spec; veja a descrição da operação.
application/json
| Name | Type | Required | Description |
|---|---|---|---|
(corpo) | object | no |
{}Responses
200
{ok:true}
401
Sem credencial valida
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Opaco em falha interna (o detalhe vai pro log, não pro cliente)
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X POST 'https://auth-api.axuz.net/auth/refresh' \
-H "Content-Type: application/json" \
-d '{}'Node.js
const res = await fetch("https://auth-api.axuz.net/auth/refresh", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"POST",
"https://auth-api.axuz.net/auth/refresh",
json={},
timeout=30,
)
res.raise_for_status()
print(res.json())