Skip to content

Passkeys & WebAuthn

Passwordless authentication with passkeys and WebAuthn.

Authrim supports passkey sign-up, login, and authenticated passkey registration through Direct Auth. Browser integrations should normally use the Web SDK instead of calling these endpoints directly.

EndpointMethodDescription
/api/v1/auth/direct/passkey/signup/startPOSTStart passkey sign-up
/api/v1/auth/direct/passkey/signup/finishPOSTFinish passkey sign-up
/api/v1/auth/direct/passkey/login/startPOSTStart passkey login
/api/v1/auth/direct/passkey/login/finishPOSTFinish passkey login
/api/v1/auth/direct/passkey/register/startPOSTStart additional passkey registration for an authenticated user
/api/v1/auth/direct/passkey/register/finishPOSTFinish additional passkey registration
const authrim = createAuthrim({
issuer: 'https://auth.example.com',
clientId: 'web-client',
});
await authrim.passkey.signUp({
email: 'user@example.com',
displayName: 'User Example',
});
await authrim.passkey.login({
conditional: true,
});

See the Web SDK passkey guide for option shapes, conditional UI behavior, and error handling.

Admin setup and admin console login use separate admin passkey endpoints:

  • /api/admin/setup-token/passkey/options
  • /api/admin/setup-token/passkey/complete
  • /api/admin/auth/passkey/options
  • /api/admin/auth/passkey/verify