Passkey
bearerAuthAuthorizationBearer <token>Bearer token authentication
authenticatorAttachment?stringType of authenticator to use for registration. "platform" for device-specific authenticators, "cross-platform" for authenticators that can be used across devices.
"platform""cross-platform"name?stringOptional custom name for the passkey. This can help identify the passkey when managing multiple credentials.
context?stringOptional context for passkey-first registration flows.
Success
application/json- response
challenge?stringrp?user?pubKeyCredParams?array<>timeout?numberexcludeCredentials?array<>authenticatorSelection?attestation?stringextensions?curl -X GET 'https://dev.auth.graphxserver.io/api/auth/passkey/generate-register-options'{ "challenge": "string", "rp": { "name": "string", "id": "string" }, "user": { "id": "string", "name": "string", "displayName": "string" }, "pubKeyCredParams": [ { "type": "string", "alg": 0 } ], "timeout": 0, "excludeCredentials": [ { "id": "string", "type": "string", "transports": [ "string" ] } ], "authenticatorSelection": { "authenticatorAttachment": "string", "requireResidentKey": true, "userVerification": "string" }, "attestation": "string", "extensions": {}}bearerAuthAuthorizationBearer <token>Bearer token authentication
Success
application/json- response
challenge?stringrp?user?timeout?numberallowCredentials?array<>userVerification?stringauthenticatorSelection?extensions?curl -X GET 'https://dev.auth.graphxserver.io/api/auth/passkey/generate-authenticate-options'{ "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": {}}bearerAuthAuthorizationBearer <token>Bearer token authentication
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?stringdate-timeaaguid?stringsession?user?curl -X POST 'https://dev.auth.graphxserver.io/api/auth/passkey/verify-registration' \ -H 'Content-Type: application/json' \ -d '{ "response": null}'{ "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", "activeTeamId": "string" }, "user": { "id": "string", "name": "string", "email": "string", "emailVerified": false, "image": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "username": "string", "displayUsername": "string", "twoFactorEnabled": false, "role": "string", "banned": false, "banReason": "string", "banExpires": "2019-08-24T14:15:22Z", "lastLoginMethod": "string", "phoneNumber": "string", "metadata": null, "emailOtpEnabled": false }}bearerAuthAuthorizationBearer <token>Bearer token authentication
application/json- body
response*Success
application/json- response
session?user?curl -X POST 'https://dev.auth.graphxserver.io/api/auth/passkey/verify-authentication' \ -H 'Content-Type: application/json' \ -d '{ "response": { "property1": null, "property2": null }}'{ "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", "activeTeamId": "string" }, "user": { "id": "string", "name": "string", "email": "string", "emailVerified": false, "image": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "username": "string", "displayUsername": "string", "twoFactorEnabled": false, "role": "string", "banned": false, "banReason": "string", "banExpires": "2019-08-24T14:15:22Z", "lastLoginMethod": "string", "phoneNumber": "string", "metadata": null, "emailOtpEnabled": false }}bearerAuthAuthorizationBearer <token>Bearer token authentication
Passkeys retrieved successfully
application/json- response
Array of passkey objects associated with the user
[index: integer]?curl -X GET 'https://dev.auth.graphxserver.io/api/auth/passkey/list-user-passkeys'[ { "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" }]bearerAuthAuthorizationBearer <token>Bearer token authentication
application/json- body
id*stringThe ID of the passkey to delete. Eg: "some-passkey-id"
Passkey deleted successfully
application/json- response
status*booleanIndicates whether the deletion was successful
curl -X POST 'https://dev.auth.graphxserver.io/api/auth/passkey/delete-passkey' \ -H 'Content-Type: application/json' \ -d '{ "id": "string"}'{ "status": true}bearerAuthAuthorizationBearer <token>Bearer token authentication
application/json- body
id*stringThe ID of the passkey which will be updated. Eg: "passkey-id"
name*stringThe new name which the passkey will be updated to. Eg: "my-new-passkey-name"
1 <= lengthPasskey updated successfully
application/json- response
passkey*curl -X POST 'https://dev.auth.graphxserver.io/api/auth/passkey/update-passkey' \ -H 'Content-Type: application/json' \ -d '{ "id": "string", "name": "string"}'{ "passkey": { "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" }}