Axuz Developers

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...

  • Access: Public
  • Service: https://auth-api.axuz.net

Accepted authentication

No authentication (public route, or protected by link/signature).

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.

Parameters

No parameters.

Responses

200

Desafio

404

{"error":"no_pending_mfa"}

NameTypeRequiredDescription
errorstringyes

429

Limite de requisições excedido.

NameTypeRequiredDescription
errorstringyes

500

Ver descrição

NameTypeRequiredDescription
errorstringyes

Examples

"Try it" is turned off in this reference. Use the examples with your test credential.

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())