AuthenticationPasskeys
Finish registering a passkey
POST
Verify registration of a new passkey
sessioncookie
gamma.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.
application/json- body
response*unknownname?stringName of the passkey
createSession?booleanCreate a session after registering the passkey
Success
application/json- response
id*stringname?stringpublicKey*stringuserId*stringcredentialID*stringcounter*numberdeviceType*stringbackedUp*booleantransports?stringcreatedAt?stringFormat
date-timeaaguid?stringsession?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" }}