Gamma API
AuthenticationPasskeys

Sign in with a passkey

POST
/api/auth/passkey/verify-authentication

Verify authentication of 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.

Request Body

application/json
  1. body
response*

Response Body

Success

application/json
  1. response
session?
user?
Example Request
curl -X POST 'http://localhost:3000/api/auth/passkey/verify-authentication' \  -H 'Content-Type: application/json' \  -d '{  "response": {    "property1": null,    "property2": null  }}'
Example Response
{  "session": {    "id": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "token": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "ipAddress": "string",    "userAgent": "string",    "userId": "string",    "impersonatedBy": "string",    "activeOrganizationId": "string"  },  "user": {    "id": "string",    "name": "string",    "email": "string",    "emailVerified": false,    "image": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "role": "string",    "banned": false,    "banReason": "string",    "banExpires": "2019-08-24T14:15:22Z",    "lastLoginMethod": "string",    "twoFactorEnabled": false,    "userTag": "string",    "language": "string",    "chartPalette": "string",    "lastLoginAt": "2019-08-24T14:15:22Z",    "passwordCompromisedAt": "2019-08-24T14:15:22Z"  }}