Vai al contenuto principale
POST
Verify 2Fa

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json

Body of POST /auth/2fa/verify.

current_password is required to ACTIVATE the 2FA (first verification); re-verifying an already active 2FA needs only the code.

code
string
predefinito:""
Maximum string length: 32
current_password
string | null

Risposta

Successful Response

data
TwoFactorVerifyOut · object | null

POST /auth/2fa/verify. At the ACTIVATION it also carries the 10 single-use recovery codes (FON-12), shown once: only their hash is kept.

meta
PaginationMeta · object | null
error
string | null
error_code
string | null