post__mfa_passkey_complete-registration
Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/mfa/passkey/complete-registration \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d '{
"credential": {
"id": "credential-id",
"rawId": "raw-credential-id",
"response": {
"clientDataJSON": "client-data-json",
"attestationObject": "attestation-object"
},
"type": "public-key"
},
"challenge": "dGVzdCBjaGFsbGVuZ2U="
}'
POST /mfa/passkey/complete-registration
Complete Passkey Registration
Complete the WebAuthn passkey registration process by validating the credential and challenge. This endpoint finalizes the passkey setup for the authenticated user.
Request Body
credential
object
true
WebAuthn credential from the client
challenge
string
true
Base64-encoded challenge used during registration
Body parameter
{
"credential": {
"id": "credential-id",
"rawId": "raw-credential-id",
"response": {
"clientDataJSON": "client-data-json",
"attestationObject": "attestation-object"
},
"type": "public-key"
},
"challenge": "dGVzdCBjaGFsbGVuZ2U="
}
Example responses
200 Response
{
"success": true,
"message": "Passkey registration completed"
}
400 Response
{
"success": false,
"error": "Passkey registration failed"
}
500 Response
{
"success": false,
"error": "Failed to complete passkey registration"
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Indicates if the request was successful
» message
string
false
none
Success message confirming registration
Status Code 400
» success
boolean
false
none
Indicates if the request was successful
» error
string
false
none
Error message describing the registration failure
Status Code 500
» success
boolean
false
none
Indicates if the request was successful
» error
string
false
none
Error message describing the issue
Last updated
Was this helpful?