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- SharedPreferencesLocalStorage, that implements SharedPreferences as storage method
MigrationLocalStorage
, to migrate from Hive to SharedPreferences
- Implementers
Constructors
- LocalStorage()
-
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
-
accessToken(
) → Future< String?> - Get the access token from the current persisted session.
-
hasAccessToken(
) → Future< bool> - Check if there is a persisted session.
-
initialize(
) → Future< void> - Initialize the storage to persist session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persistSession(
String persistSessionString) → Future< void> - Persist a session in the device.
-
removePersistedSession(
) → Future< void> - Remove the current persisted session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited