Repository navigation
feat(examples): add passkeys example with shared local Supabase setup and launcher - #1407
Merged
Merged
Conversation
spydon
marked this pull request as ready for review
June 16, 2026 09:45
spydon
force-pushed
the
examples-passkeys
branch
from
June 16, 2026 09:55
914138c to
5d510b6
Compare
spydon
force-pushed
the
feat/passkey-ceremony-helpers
branch
from
June 16, 2026 09:59
5c80b7e to
77d3dc6
Compare
Add registerPasskey() and signInWithPasskey() on GoTrueClient so developers no longer have to hand-write the platform WebAuthn ceremony. The ceremony is driven by the cross-platform passkeys plugin, and a thin mapper converts gotrue's W3C options into the plugin's request types.
… passkeys The bundled passkeys plugin requires iOS 16.0 / macOS 13.5 (its PasskeysPlugin is gated with @available), and Flutter registers it unconditionally, so the example app fails to build below those versions. Bump the example deployment targets and document that consumers must target at least iOS 16.0 / macOS 13.5.
spydon
force-pushed
the
feat/passkey-ceremony-helpers
branch
from
June 16, 2026 10:06
77d3dc6 to
b9c92c4
Compare
The passkeys plugin pulls device_info_plus transitively via passkeys_doctor. From 12.4.0 it calls the iOS 26.1 isiOSAppOnVision API without a compile time guard, breaking the iOS build on Xcode older than the iOS 26.1 SDK (the current CI runners). Cap it in the example until the runners ship a new enough Xcode.
The launcher depends on mason_logger, which requires Dart 3.5+, breaking melos bootstrap on the Flutter 3.19.x CI job (Dart 3.3). It is a standalone dev tool with no workspace dependencies, so it does not belong in the bootstrapped workspace.
Drop the hand-written js_interop authenticator and the manual two-step start/verify flows now that supabase_flutter exposes registerPasskey() and signInWithPasskey() (#1408). Load the passkeys web bundle in index.html.
spydon
force-pushed
the
examples-passkeys
branch
from
June 16, 2026 11:30
5d510b6 to
8f8d6b6
Compare
grdsdev
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Adds an
examples/directory with a runnable example showing off the passkey (WebAuthn) support, plus shared local Supabase infrastructure and a launcher so the same setup can be reused by future examples.What is the new behavior?
examples/passkeysA Flutter web app demonstrating passkeys with
supabase_flutter:The full WebAuthn ceremony (including the platform prompt) is handled by
supabase_flutterviaregisterPasskey()andsignInWithPasskey()from #1408, so the example just calls those. The web build loads thepasskeysplugin's JavaScript bundle inweb/index.html. The README explains, concisely, what is needed to use passkeys.examples/supabaseA single shared
config.tomlevery example runs against. It enables passkeys ([auth.passkey]+[auth.webauthn]), disables email confirmations for quick sign in, and trims the stack to the data plane (turns off Studio, the email-testing server, Edge Functions, and analytics) sosupabase startis lean.examples/launcherA small Dart TUI (
examples/run.sh) that boots the local Supabase stack, reads back the local URL and publishable key, lists the examples and runs the selected one on Chrome with the credentials wired in as--dart-defines. It stops the stack on exit if it started it. New examples (any directory with apubspec.yamlandlib/main.dart) are discovered automatically.A root
examples/README.mdexplains the whole workflow.How was it tested?
flutter analyze/dart analyzeanddart formatclean across the new packages.flutter build websucceeds for the passkeys example.Notes
This is a draft for review of the structure before polishing further (e.g. additional examples).
Linear: SDK-1058 (sub-issue of SDK-1057)