SessionStorage class

The default implementation of the DescopeSessionStorage.

By default this class persists the session securely to the keychain on iOS, or vie EncryptedSharedPreferences on Android. For your convenience, you can implement the Store class and override the Store.loadItem, Store.saveItem and Store.removeItem functions, then pass an instance of that class to the constructor to create a SessionStorage object that uses a different backing store.

Implemented types

Constructors

SessionStorage({required String projectId, SessionStorageStore? store})

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

loadSession() Future<DescopeSession?>
Called by the session manager when it's initialized to load any existing DescopeSession.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSession() Future<void>
Called by the session manager when the DescopeSessionManager.clearSession function is called.
override
saveSession(DescopeSession session) Future<void>
Called by the session manager when a new DescopeSession is set or an existing session is updated.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited