TokenRefreshResult class sealed
Result of a token refresh attempt.
Constructors
- TokenRefreshResult.failed({String? reason})
-
Refresh failed due to a transient error (network, server 500, etc).
The SDK will emit BiometricResult.error and the caller can retry.
constfactory
- TokenRefreshResult.reauthRequired()
-
The refresh token itself is expired or revoked.
The user must re-authenticate from scratch (OAuth flow, login screen, etc).
The SDK will emit BiometricResult.reauthenticationRequired.
constfactory
-
TokenRefreshResult.success({required String newToken, Map<
String, dynamic> metadata}) -
Refresh succeeded.
newTokenreplaces the old one in secure storage.metadatacan carry additional data (e.g., a new refresh token) which is emitted via BiometricEvent for the caller to handle.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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