OidcOfflineModeEnteredEvent class

An event that gets raised when the user manager enters offline mode.

This occurs when the app cannot reach the authentication server but OidcUserManagerSettings.supportOfflineAuth is enabled, allowing the user to remain authenticated with cached tokens.

Inheritance

Constructors

OidcOfflineModeEnteredEvent({required OfflineModeReason reason, required DateTime at, OidcToken? currentToken, DateTime? lastSuccessfulServerContact, Object? error, Map<String, dynamic>? additionalInfo})
const
OidcOfflineModeEnteredEvent.now({required OfflineModeReason reason, OidcToken? currentToken, DateTime? lastSuccessfulServerContact, Object? error, Map<String, dynamic>? additionalInfo})

Properties

additionalInfo → Map<String, dynamic>?
finalinherited
at → DateTime
when the event occurred.
finalinherited
currentToken → OidcToken?
The current token being used in offline mode (may be expired).
final
error → Object?
The error that caused entering offline mode, if applicable.
final
hashCode → int
The hash code for this object.
no setterinherited
lastSuccessfulServerContact → DateTime?
The last time the manager successfully contacted the server. Useful for displaying "Last synced: X minutes ago" in the UI.
final
reason → OfflineModeReason
The reason for entering offline mode.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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