LocalStorage class abstract
LocalStorage is used to persist the user session in the device.
See also:
- SupabaseAuth, the instance used to manage authentication
- EmptyLocalStorage, used to disable session persistence
- HiveLocalStorage, that implements Hive as storage method
- Implementers
Constructors
Properties
-
accessToken
→ Future<
String?> Function() -
Get the access token from the current persisted session.
final
-
hasAccessToken
→ Future<
bool> Function() -
Check if there is a persisted session.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialize
→ Future<
void> Function() -
Initialize the storage to persist session.
final
-
persistSession
→ Future<
void> Function(String) -
Persist a session in the device.
final
-
removePersistedSession
→ Future<
void> Function() -
Remove the current persisted session.
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