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
- application/json
Body
required
device stringrequired
email stringrequired
otp stringrequired
passwordHash stringrequired
Responses
- 200
- 400
- 404
- 500
The user is authenticated
- application/json
- Schema
- Example (from schema)
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
{
"accessToken": "string",
"createdAt": "2024-09-25T19:42:12.375Z",
"device": "string",
"deviceCreatedAt": "2024-09-25T19:42:12.375Z",
"email": "string",
"hpkePubKey": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"lastLogin": "2024-09-25T19:42:12.375Z",
"lastTransaction": "2024-09-25T19:42:12.375Z",
"nickname": "string",
"refreshToken": "string",
"status": "string"
}
The user is not authenticated
- text/plain
- Schema
Schema
string
Not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...