helpers/passkeyHelpers
library
Functions
-
passkeyErrorMessage(Object error, {bool setup = false})
→ String
-
Maps a ceremony / native-authenticator error to a user-facing message.
-
runPasskeyEnrollment(Store store, {required String label, void onSuccess()?, void onFinished()?, void onFailure(String message)?})
→ void
-
Runs the passkey ENROLLMENT ceremony (session-scoped): register/options →
native authenticator (create) → register/verify.
-
runPasskeyLogin(Store store, {required String email, bool permanent = true, void onFinished()?, void onFailure(String message)?})
→ void
-
Runs the passkey LOGIN ceremony (email-first): auth/options → native
authenticator → auth/verify. A successful verify decodes the same User+token
as a password sign-in, so the normal post-sign-in routing follows.