This endpoint completes the hardware-based two-factor authentication process. It requires a request payload including a public key
POST/v1/auth/hw-2fa-finish-verification
This endpoint completes the hardware-based two-factor authentication process. It requires a request payload including a public key credential, email, password hash, and device identifier. Upon successful validation of the credentials and completion of the hardware authentication, it returns a user session object containing details such as ID, email, nickname, status, and tokens.
Request
- application/json
Body
required
credential stringrequired
device stringrequired
email stringrequired
passwordHash stringrequired
sessionId stringrequired
Responses
- 200
- 400
- 401
- 500
Finish hardware 2FA authentication
- 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.372Z",
"device": "string",
"deviceCreatedAt": "2024-09-25T19:42:12.372Z",
"email": "string",
"hpkePubKey": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"lastLogin": "2024-09-25T19:42:12.372Z",
"lastTransaction": "2024-09-25T19:42:12.372Z",
"nickname": "string",
"refreshToken": "string",
"status": "string"
}
Invalid credentials
- text/plain
- Schema
Schema
string
Unauthorized
- text/plain
- Schema
Schema
string
Unexpected error
- text/plain
- Schema
Schema
string
Loading...