TokenRefreshResult class sealed

Result of a token refresh attempt.

Implementers

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.
const
factory
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.
const
factory
TokenRefreshResult.success({required String newToken, Map<String, dynamic> metadata})
Refresh succeeded. newToken replaces the old one in secure storage. metadata can carry additional data (e.g., a new refresh token) which is emitted via BiometricEvent for the caller to handle.
const
factory

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