AlphaAlpha Docs
API ReferenceAuth passkey

Get passkey registration options

Generate WebAuthn registration options for creating a new passkey

POST
/auth/passkey/register/options
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/auth/passkey/register/options"
{
  "attestation": "string",
  "authenticatorSelection": {
    "authenticatorAttachment": "string",
    "requireResidentKey": true,
    "residentKey": "string",
    "userVerification": "string"
  },
  "challenge": "string",
  "excludeCredentials": [
    {
      "id": "string",
      "transports": [
        "string"
      ],
      "type": "string"
    }
  ],
  "pubKeyCredParams": [
    {
      "alg": 0,
      "type": "string"
    }
  ],
  "rp": {
    "id": "string",
    "name": "string"
  },
  "timeout": 0,
  "user": {
    "displayName": "string",
    "id": "string",
    "name": "string"
  }
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}