cURL
curl --request POST \ --url https://passkeys.hanko.io/{tenant_id}/login/initialize \ --header 'Content-Type: application/json' \ --data '{ "user_id": "<string>" }'
{ "publicKey": { "challenge": "<string>", "timeout": 123, "rpId": "<string>", "allowCredentials": [ { "type": "public-key", "id": "<string>", "transports": [ "ble" ] } ], "userVerification": "discouraged", "extensions": { "appid": true, "appidExclude": true, "credProps": { "rk": true } } }, "mediation": "optional" }
Initialize a login flow for passkeys
UUID of the tenant
36
["1f496bcd-49da-4839-a02f-7ce681ccb488"]
Body for login/initialize
The body is of type object.
object
Example response
The response is of type object.
Was this page helpful?