AuthClient class

Constructors

AuthClient({required String scheme, required AuthFunction authFunction, String path = '', SignIdentity? key, DelegationChain? chain, Uri? authUri, Identity? identity})
AuthClient.fromJson(String scheme, AuthFunction authFunction, Map<String, dynamic> map, Uri? authUri)
factory

Properties

authFunction AuthFunction
final
authUri Uri?
final
chain DelegationChain?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
identity Identity?
getter/setter pair
key SignIdentity?
getter/setter pair
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
final

Methods

getIdentity() Identity?
handleFailure(String? errorMessage, void onError(String? error)?) → void
handleSuccess(AuthResponseSuccess message, void onSuccess()?) → void
isAuthenticated() Future<bool>
login([AuthClientLoginOptions? options]) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toStorage() String
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromStorage(String str) FromStorageResult