/gate/passkeys/signin/finishFinish Passkey Sign-In
Completes WebAuthn passkey authentication by verifying the authenticator's assertion response, checking the signature counter for replay protection, and issuing a Gate JWT and refresh token on success.
Returns K9O_INVALID_CREDENTIALS (401) if the assertion fails or no registered passkey matches.
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| response * | any | The browser's authentication result as JSON (an Its |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 400 | K9O_INVALID_FIELD_VALUE | The passkey credential presented is not registered for this project. |
| 401 | K9O_INVALID_CREDENTIALS | Passkey assertion verification failed. Try again with your registered device. |
| 401 | K9O_MFA_REQUIRED | Sign-in succeeded but an additional MFA step is required to complete authentication. |
| data * | object | Signed in. A passkey sign-in never asks for an authenticator-app code. |
| session * | object | The tokens for the new session. Keep the refresh token for |
| accessToken * | string | A signed JWT that authenticates the end user to this project's API. Send it as Its subject ( It lives for the project's end-user access token lifetime: 30 minutes by default, settable from 5 to 60 minutes. It cannot be revoked early: signing out or revoking sessions stops the next refresh, but a token already issued stays valid until |
| refreshToken * | string | An opaque secret (43 base64url characters) that gets a new access token from Store it securely and never send it anywhere else. It is single use: every refresh returns a new refresh token, and sending the one it replaced a second time ends the whole session. It stops working when the session ends: on sign-out, a password reset, a revoke-all, or when the project's session limits are reached (by default 30 days without a refresh, or 90 days after sign-in, whichever comes first). |
| expiresAt * | string <date-time> | When Refresh before this time to keep the end user signed in. |
| 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.signIn.finish({
response: null
})Showing example in TypeScript
{
"response": null
}{
"data": {
"session": {
"accessToken": "string",
"refreshToken": "string",
"expiresAt": "string"
}
}
}