post__passkey_auth-options

Code Samples

# You can also use wget
curl -X POST https://backend.flashback.tech/mfa/passkey/auth-options \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /mfa/passkey/auth-options

Generate Passkey Authentication Options

Generate authentication options for WebAuthn passkey verification. This endpoint creates the challenge and configuration needed for passkey authentication.

Example responses

200 Response

{
  "success": true,
  "data": {
    "challenge": "dGVzdCBjaGFsbGVuZ2U=",
    "rpId": "flashback.tech",
    "userVerification": "required",
    "timeout": 60000
  }
}

500 Response

{
  "success": false,
  "error": "Failed to generate authentication options"
}

Responses

Status
Meaning
Description
Schema

200

Authentication options generated successfully

Inline

500

Internal server error

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» data

object

false

none

Passkey authentication challenge options

»» challenge

string

false

none

Base64-encoded challenge for WebAuthn

»» rpId

string

false

none

Relying party identifier

»» userVerification

string

false

none

User verification requirement

»» timeout

integer

false

none

Challenge timeout in milliseconds

Status Code 500

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» error

string

false

none

Error message describing the issue

Enumerated Values

Parameter
Value
Description

» userVerification

required

User verification is required

» userVerification

preferred

User verification is preferred but not required

» userVerification

discouraged

User verification is discouraged

Last updated

Was this helpful?