SharedPreferencesAuthAsyncStorage class
The AuthAsyncStorage that Supabase.initialize uses unless another one
is passed, holding the session and the pkce code verifiers.
Writes through the SharedPreferencesAsync API of shared_preferences,
except on web where it uses window.localStorage directly so the session
is shared with supabase-js under the same key.
A value written by supabase_flutter v2 through the legacy
SharedPreferences API is moved over to SharedPreferencesAsync the first
time it is read.
- Inheritance
-
- Object
- AuthAsyncStorage
- SharedPreferencesAuthAsyncStorage
Constructors
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
-
getItem(
String key) → Future< String?> -
Returns the value stored under
key, ornullwhen there is none.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItem(
String key) → Future< void> -
Removes the value stored under
key, if any.override -
setItem(
String key, String value) → Future< void> -
Stores
valueunderkey, replacing any earlier value.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited