FronteggState class

Represents the authentication state in the Frontegg system.

Constructors

FronteggState({String? accessToken, String? refreshToken, FronteggUser? user, bool isAuthenticated = false, bool isLoading = true, bool initializing = true, bool showLoader = true, bool appLink = false, bool refreshingToken = false, bool isOfflineMode = false})
Creates a FronteggState instance with the given parameters.
const
FronteggState.fromMap(Map<Object?, Object?> map)
factory

Properties

accessToken String?
The access token for authenticated requests, or null if not authenticated.
final
Whether the authentication process involves an app link.
final
hashCode int
The hash code for this object.
no setteroverride
initializing bool
Whether the authentication state is still initializing.
final
isAuthenticated bool
Whether the user is authenticated.
final
isLoading bool
Whether an authentication-related operation is currently in progress.
final
isOfflineMode bool
Whether the SDK considers the app in offline / no-connection UX (native-driven).
final
refreshingToken bool
Whether the token is currently being refreshed.
final
refreshToken String?
The refresh token used to obtain a new access token, or null if not available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLoader bool
Whether to show a loader (e.g., during authentication transitions).
final
user FronteggUser?
The authenticated user details, or null if not logged in.
final

Methods

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

Operators

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