SecureTokenStore class

Stores SDK tokens in flutter_secure_storage.

The current implementation writes access and refresh tokens regardless of the rememberMe value, and also stores that flag as a separate marker.

Implemented types

Constructors

SecureTokenStore.new({FlutterSecureStorage storage = const FlutterSecureStorage()})
Creates a secure token store.
const

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

clear() Future<void>
Removes all SDK token keys from secure storage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Future<TokenPair?>
Reads tokens from secure storage.
override
save(TokenPair tokens, {required bool rememberMe}) Future<void>
Persists both tokens and records the rememberMe flag.
override
toString() String
A string representation of this object.
inherited

Operators

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