SharedPreferencesSessionStorage

SessionStorage backed by SharedPreferences. Keying per account is what stops one account's session being reused by the next account on the same device.

Constructors

Link copied to clipboard
constructor(prefs: SharedPreferences)

Functions

Link copied to clipboard
open override fun clear(accountId: String?)
Link copied to clipboard
open override fun get(accountId: String?): SessionId?
Link copied to clipboard
open override fun lastRefresh(accountId: String?): Long?
Link copied to clipboard
open override fun set(value: SessionId, accountId: String?)
Link copied to clipboard
open override fun setLastRefresh(timestamp: Long, accountId: String?)