Auth
Start passkey login
Return the request options (challenge). Provide an identifier to restrict the ceremony to one account, or omit it for a usernameless (discoverable credential) login.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
identifier?string
Username, email or numeric user ID. Omit to let the browser offer any discoverable passkey (usernameless login).
Response Body
application/json
application/json
curl -X POST "https://loading/api/auth/passkey/login/options" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"ceremony_id": "string",
"options": {}
},
"error": null,
"time": 1680000000000,
"request": "/api/endpoint"
}{
"data": null,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"status": 404
},
"time": 1680000000000,
"request": "/api/endpoint"
}