Gamma API
AuthenticationPasskeys

Start signing in with a passkey

GET
/api/auth/passkey/generate-authenticate-options

Generate authentication options for a passkey

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Response Body

Success

application/json
  1. response
challenge?string
rp?
user?
timeout?number
allowCredentials?array<>
userVerification?string
authenticatorSelection?
extensions?
Example Request
curl -X GET 'http://localhost:3000/api/auth/passkey/generate-authenticate-options'
Example Response
{  "challenge": "string",  "rp": {    "name": "string",    "id": "string"  },  "user": {    "id": "string",    "name": "string",    "displayName": "string"  },  "timeout": 0,  "allowCredentials": [    {      "id": "string",      "type": "string",      "transports": [        "string"      ]    }  ],  "userVerification": "string",  "authenticatorSelection": {    "authenticatorAttachment": "string",    "requireResidentKey": true,    "userVerification": "string"  },  "extensions": {}}