Skip to main content

Confirm a TOTP device with its first code

POST 

/api/v1/mfa/devices/:deviceId/verify

Verifies the device and, in the password-reset flow, issues a fresh restricted MFA-reset cookie; otherwise issues full auth cookies and creates a session (this endpoint doubles as "finish enrollment" and, for the password-reset flow, "MFA step-up").

Request

Responses

Device verified

Response Headers
    Set-Cookie

    Either full auth cookies (safebucket_access_token + safebucket_refresh_token) if no MFA step-up is needed, or a single restricted safebucket_mfa_token cookie if mfa_required: true is returned in the body.