AuthStore class abstract
Holds the session. Requests read current synchronously; onChange emits every change (sign-in, refresh, sign-out).
Persistent stores (vaultbase_flutter) override persist to write the
session and complete ready once the saved one is loaded; await
ready before the first request.
- Implementers
Constructors
Properties
- current → StoredAuth?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
True when there is a token that has not expired.
no setter
-
onChange
→ Stream<
StoredAuth?> -
no setter
-
ready
→ Future<
void> -
Completes once the store holds its saved session (at once for memory).
no setter
-
record
→ Map<
String, dynamic> ? -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
no setter
Methods
-
clear(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
StoredAuth? auth) → void - Writes the session to storage. Nothing for the memory store.
-
restore(
StoredAuth? auth) → void - Sets the session loaded from storage, without writing it back.
-
save(
StoredAuth? auth) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited