/gate/passkeys/register/finishFinish Passkey Registration
Completes WebAuthn passkey registration by verifying the authenticator's attestation response and persisting the new pky_-prefixed credential.
Requires an active end-user session; the end-user must have initiated registration via the begin endpoint in the same session.
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| response * | any | The browser's registration result as JSON (a Its |
| label | string | A name for the passkey. It is accepted but not stored. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 401 | K9O_SESSION_EXPIRED | Your session has expired or been revoked. Sign in again to continue. |
| 401 | K9O_INVALID_CREDENTIALS | Passkey attestation verification failed. Try registering your passkey again. |
| 404 | K9O_END_USER_NOT_FOUND | No account was found for the provided identity. |
| data * | object | The result of the registration. |
| passkey * | object | The passkey now registered to the end user. |
| id * | string | The id of the stored passkey ( |
| credentialId * | string | The WebAuthn credential id, base64url. |
| meta * | any | Request metadata: cost, timing and the request and trace ids. |
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.gate.passkeys.register.finish({
response: null,
label: 'string'
})Showing example in TypeScript
{
"response": null,
"label": "string"
}{
"data": {
"passkey": {
"id": "string",
"credentialId": "string"
}
}
}