GET /auth/login/mfa
Lê o cookie HttpOnly axuz_mfa_pending (posto pelo callback OAuth), valida o desafio e devolve o mesmo corpo do /auth/login (MFAChallengeB...
- Acesso: Pública
- Serviço:
https://auth-api.axuz.net
Autenticação aceita
Sem autenticação (rota pública ou protegida por link/assinatura).
Lê o cookie HttpOnly axuz_mfa_pending (posto pelo callback OAuth), valida o desafio e devolve o mesmo corpo do /auth/login (MFAChallengeBody). Cookie ausente/adulterado/expirado ⇒ 404.
loginMFAPending devolve o desafio aberto pelo login social.
Retorno: 200 desafio; 404 {"error":"no_pending_mfa"}; 500.
Parâmetros
Sem parâmetros.
Respostas
200
Desafio
404
{"error":"no_pending_mfa"}
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Ver descrição
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X GET 'https://auth-api.axuz.net/auth/login/mfa'Node.js
const res = await fetch("https://auth-api.axuz.net/auth/login/mfa", {
method: 'GET',
});
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(
"GET",
"https://auth-api.axuz.net/auth/login/mfa",
timeout=30,
)
res.raise_for_status()
print(res.json())