Skip to main content
GET
/
sdk
/
{environmentId}
/
users
/
passkeys
/
authenticate
Gets passkey authentication options
curl --request GET \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/users/passkeys/authenticate \
  --header 'Authorization: Bearer <token>'
{
  "challenge": "An example name",
  "timeout": 123,
  "rpId": "An example name",
  "userVerification": "discouraged",
  "allowCredentials": [
    {
      "id": "<string>",
      "transports": [
        "usb"
      ]
    }
  ],
  "extensions": {
    "appid": "<string>",
    "appidExclude": "<string>",
    "credProps": true,
    "uvm": true
  },
  "hints": "hybrid"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Query Parameters

Related origin rp id

Response

returns passkey authentication options

challenge
string
required
Example:

"An example name"

timeout
number

Timeout in milliseconds

rpId
string
Example:

"An example name"

userVerification
enum<string>
Available options:
discouraged,
preferred,
required
allowCredentials
object[]
extensions
object
hints
enum<string>
Available options:
hybrid,
security-key,
client-device