post__mfa_passkey_complete-registration
Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/mfa/passkey/complete-registration-1 \
-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-1
Complete Passkey Registration (Alternative Endpoint)
Alternative endpoint for completing the WebAuthn passkey registration process. This endpoint provides the same functionality as the standard complete-registration endpoint but may be used for specific client implementations or testing purposes.
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?