Gamma API
AuthenticationPasskeys

Finish registering a passkey

POST
/api/auth/passkey/verify-registration

Verify registration of a new 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*unknown
name?string

Name of the passkey

createSession?boolean

Create a session after registering the passkey

Response Body

Success

application/json
  1. response
id*string
name?string
publicKey*string
userId*string
credentialID*string
counter*number
deviceType*string
backedUp*boolean
transports?string
createdAt?string
Formatdate-time
aaguid?string
session?
user?
Example Request
curl -X POST 'http://localhost:3000/api/auth/passkey/verify-registration' \  -H 'Content-Type: application/json' \  -d '{  "response": null}'
Example Response
{  "id": "string",  "name": "string",  "publicKey": "string",  "userId": "string",  "credentialID": "string",  "counter": 0,  "deviceType": "string",  "backedUp": true,  "transports": "string",  "createdAt": "2019-08-24T14:15:22Z",  "aaguid": "string",  "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"  }}