AuthClientWebAuthnRegistrationOptions class final

Registration options returned by the WebAuthn ceremony-start endpoint.

publicKey is shaped for the browser navigator.credentials.create API. Base64url fields remain strings so a platform adapter can convert them to the byte representation required by its WebAuthn binding.

Constructors

AuthClientWebAuthnRegistrationOptions({required String challenge, required String relyingPartyId, required String userId, required Map<String, dynamic> publicKey})
Creates options for a WebAuthn registration ceremony.
const
AuthClientWebAuthnRegistrationOptions.fromJson(Map<String, dynamic> json)
Decodes registration options from a JSON object.
factory

Properties

challenge String
Base64url-encoded challenge supplied by the server.
final
hashCode int
The hash code for this object.
no setterinherited
publicKey Map<String, dynamic>
Browser-shaped public-key options for navigator.credentials.create.
final
relyingPartyId String
Relying-party identifier expected by the authenticator.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
Base64url-encoded user handle supplied by the server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the browser-shaped options as a mutable JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited