BrowserWebAuthnProvider class
Non-web stub of BrowserWebAuthnProvider.
This file is selected by the conditional-export wiring on every target
where dart:js_interop is unavailable (Dart VM, Flutter mobile/desktop
AOT, Flutter mobile JIT). It exposes the same constructor and method
signatures as the browser implementation so consumer code that calls
BrowserWebAuthnProvider(...) compiles unchanged on every target.
Construction never throws; this matches the symmetry rule documented on the browser implementation. Each method invocation throws UnsupportedError with guidance toward the platform-specific provider that should be used instead.
- Inheritance
-
- Object
- WebAuthnProvider
- BrowserWebAuthnProvider
Constructors
- BrowserWebAuthnProvider({required String rpId, required String rpName, int timeoutMs = WebAuthnProvider.defaultTimeoutMs})
- Constructs a BrowserWebAuthnProvider stub. The constructor accepts the same parameters as the browser implementation so cross-target code compiles unchanged.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rpId → String
-
Relying party identifier (e.g.
app.example.com).final - rpName → String
-
Human-readable relying party name displayed during ceremonies.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → int
-
Timeout in milliseconds for WebAuthn ceremonies.
final
Methods
-
authenticate(
{required Uint8List challenge, List< WebAuthnAllowCredential> ? allowCredentials}) → Future<WebAuthnAuthenticationResult> -
Authenticates with an existing WebAuthn credential (passkey assertion).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
{required Uint8List challenge, required Uint8List userId, required String userName}) → Future< WebAuthnRegistrationResult> -
Registers a new WebAuthn credential (passkey creation).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited