Available on supabase_flutter 2.15.0 and later as an extension on GoTrueClient.
Drives the full WebAuthn ceremony end to end: starts the challenge with the Supabase server, prompts the user for biometrics or a security key via the platform passkey API, and verifies the credential with the server.
Does not require an existing session. On success the session is persisted and an AuthChangeEvent.signedIn event is fired.
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.
Platform setup the library cannot perform (Associated Domains on iOS/macOS, Digital Asset Links on Android, the passkeys web SDK on web) is documented in the supabase_flutter package README.
Parameters
captchaToken
(Optional)
Captcha token to be used for captcha verification.
Examples
Sign in with a passkey
final AuthResponse res = await supabase.auth.signInWithPasskey();
final Session? session = res.session;
final User? user = res.user;