Skip to main content

Verify email 2FA

POST 

/v1/auth/email-2fa-verification

Verify email 2FA

This endpoint is designed to authenticate users through email-based two-factor authentication (Default if no other 2FA method registered). It requires the user's email, password hash, and the 2FA code sent to their email. Upon successful verification, it returns user details along with access and refresh tokens.

Request

Body

required
    email stringrequired
    emailCode stringrequired
    passwordHash stringrequired
    sessionId stringrequired

Responses

Email 2FA verified

Schema
    created_at date-timerequired
    device stringrequired
    device_created_at date-timerequired
    email stringrequired
    hpke_pub_key binarynullable
    id uuidrequired
    last_login date-timenullable
    last_transaction date-timenullable
    nickname stringrequired
    status stringrequired
Loading...