PUT /auth/fido

Prepare FIDO device for registration. It returns registration options for WebAuthn.

Responses

  • 200

    FIDO device pre-registered data

  • 400

    Invalid request

PUT /auth/fido
curl -X PUT "http://api.example.com/auth/fido" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/auth/fido"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.put(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
curl \
 --request PUT 'http://api.example.com/auth/fido' \
 --header "Authorization: $API_KEY"