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
- application/json
Body
required
email stringrequired
emailCode stringrequired
passwordHash stringrequired
sessionId stringrequired
Responses
- 200
- 400
- 401
- 500
Email 2FA verified
- application/json
- Schema
- Example (from schema)
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
{
"created_at": "2024-09-25T19:42:12.370Z",
"device": "string",
"device_created_at": "2024-09-25T19:42:12.370Z",
"email": "string",
"hpke_pub_key": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_login": "2024-09-25T19:42:12.370Z",
"last_transaction": "2024-09-25T19:42:12.370Z",
"nickname": "string",
"status": "string"
}
Invalid credentials
- text/plain
- Schema
Schema
string
Unauthorized
- text/plain
- Schema
Schema
string
Unexpected error
- text/plain
- Schema
Schema
string
Loading...