Skip to main content

Verify software 2FA

POST 

/v1/auth/sw-2fa-verification

Verify software 2FA

This endpoint authenticate users through a software-based two-factor authentication (2FA) process. It receives the user's email, password hash, device identifier, and one-time password (OTP). Upon successful validation of the credentials and OTP against the stored 2FA secret, the user is granted access tokens for further authenticated sessions.

Request

Body

required
    device stringrequired
    email stringrequired
    otp stringrequired
    passwordHash stringrequired

Responses

The user is authenticated

Schema
    accessToken stringrequired
    createdAt date-timerequired
    device stringrequired
    deviceCreatedAt date-timerequired
    email stringrequired
    hpkePubKey binarynullable
    id uuidrequired
    lastLogin date-timenullable
    lastTransaction date-timenullable
    nickname stringrequired
    refreshToken stringrequired
    status stringrequired
Loading...