Registers a new passkey (WebAuthn credential) for the signed in user.
Available on supabase_flutter 2.15.0 and later as an extension on GoTrueClient.
Drives the full WebAuthn ceremony end to end: starts the registration with the Supabase server, prompts the user to create a credential on the device, and verifies it with the server.
Requires a signed in (non-anonymous) user. If the user has verified MFA factors, the session has to be at aal2 to manage passkeys.
For native flows or custom UI, use the lower-level auth.passkey namespace instead.
Passkeys are a BETA feature and must be enabled for your project in the Supabase Dashboard under Authentication > Configuration > Passkeys.
Examples
Register a passkey for the current user
final Passkey passkey = await supabase.auth.registerPasskey();