Register hardware 2FA finish
POST/v1/settings/hw-2fa-registration-finish
Register hardware 2FA finish
This endpoint finish the registration process for hardware-based two-factor authentication (2FA). It requires a JSON payload containing the credential details. Upon successful completion, it registers the hardware 2FA for the user and returns a 201 status code along with the ID of the newly registered 2FA method. If the session data is missing or the operation times out, it responds with appropriate error codes (403 for timeout, 404 for missing session data, and 500 for internal server errors).
Request
- application/json
Body
required
credential stringrequired
sessionId stringrequired
Responses
- 201
- 403
- 404
- 500
Hardware 2FA registered
- text/plain
- Schema
Schema
string
Timeout expired
- text/plain
- Schema
Schema
string
Data from another request not found in session
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...