MemoryAuthAsyncStorage class
An AuthAsyncStorage that keeps everything in memory only.
Everything it holds is lost when the process exits, so a session is not
restored after a restart and a pkce flow started before one can no longer
be completed. Use a persistent implementation when either needs to outlive
the process, which is what supabase_flutter does with shared preferences.
- Inheritance
-
- Object
- AuthAsyncStorage
- MemoryAuthAsyncStorage
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