AuthState class

Represents stored authentication state

Constructors

AuthState({SmartTokenResponse? tokenResponse, DateTime? lastAuthenticated, ClientAuthMethod? authMethod, String? sessionId})
Create a snapshot of persisted authentication state: the current tokenResponse, when the user lastAuthenticated, the authMethod used, and the associated sessionId.
AuthState.fromJson(Map<String, dynamic> json)
Create from JSON
factory

Properties

authMethod → ClientAuthMethod?
How user authenticated
final
canRefresh → bool
Check if refresh is possible
no setter
hashCode → int
The hash code for this object.
no setterinherited
isAuthenticated → bool
Check if authenticated
no setter
lastAuthenticated → DateTime?
When user last authenticated
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String?
Session identifier
final
tokenResponse → SmartTokenResponse?
Current token response
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON
toString() → String
A string representation of this object.
inherited

Operators

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