openauth-passkey
Server-side passkey plugin for OpenAuth.
use OpenAuthOptions;
use ;
let options = new
.secret
.base_url
.plugin;
The plugin contributes a passkeys table with snake_case columns and exposes:
GET /passkey/generate-register-optionsPOST /passkey/verify-registrationGET /passkey/generate-authenticate-optionsPOST /passkey/verify-authenticationGET /passkey/list-user-passkeysPOST /passkey/update-passkeyPOST /passkey/delete-passkey
WebAuthn ceremony state is stored server-side in OpenAuth's verification
storage and is referenced by a signed, short-lived cookie. It is not stored in
the cookie itself.
Generated registration and authentication option JSON follows the Better Auth
server behavior for passkey names, authenticator selection hints, attachments,
and extensions. Cryptographic verification is still delegated to webauthn-rs;
OpenAuth does not hand-roll WebAuthn verification or trust state supplied by the
client.