Rask
Rask
v0.23.1-alpha.0.496
You're reading the Rask v0.23.1-alpha.0.496 guides. Updated .View source
All guides

IWebAuthn

Register and sign in with passkeys.

  • Wraps: Web Authentication (passkeys)
  • MDN: Web Authentication API
  • Home: Rask.Core.Browser (all hosts)
  • Shape: one-shot
  • Availability: Web/Server ✅ · PWA/WASM ✅

You probably want IAuth instead

This is the browser half on its own: it runs a ceremony and hands back what the authenticator signed, leaving the challenge and the verification to you. If you are adding passkeys to an app's accounts, Rask.Auth already does both ends — auth.AddPasskey("MacBook") and auth.SignInWithPasskey() — with the credential stored and the signature verified server-side. See Passkeys.

Reach for IWebAuthn directly when the relying party is somebody else's server, or when you are verifying the ceremony yourself.

See also

Confirm