AuthSessionStore<TUser> class
abstract
Where the app keeps the session between launches. Each app writes one subclass on its own storage.
Tokens and passwords must go to secure storage (Keychain / Keystore), never to plain preferences, and never to a log.
Only the session calls must be written. The pending identifier and
"remember me" are optional: until overridden they store nothing and read
null. Calls added to brix later arrive with a default the same way.
- Implementers
Constructors
- AuthSessionStore()
-
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
-
clearAll(
) → Future< void> - Removes everything this store keeps (account deleted): session, pending identifier and "remember me".
-
clearPendingIdentifier(
) → Future< void> -
clearRememberedCredentials(
) → Future< void> -
clearSession(
) → Future< void> - Removes the session and the pending identifier. Keeps the remembered credentials, "remember me" must survive a logout.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readPendingIdentifier(
) → Future< String?> -
readRememberedCredentials(
) → Future< RememberedCredentials?> -
readSession(
) → Future< AuthSession< TUser> ?> -
The saved session, or
nullwhen nobody is logged in. -
savePendingIdentifier(
String identifier) → Future< void> - The identifier waiting for its signup code, so the code screen still knows it after a restart.
-
saveRememberedCredentials(
RememberedCredentials credentials) → Future< void> -
saveSession(
AuthSession< TUser> session) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited