post__mfa_passkey_complete-registration-1
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 https://backend.flashback.tech/mfa/passkey/complete-registration-1 HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/json
Authorization: Bearer {access-token}
{
"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
Example responses
200 Response
400 Response
500 Response
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?