open class KeyValueStore
DAO for sdk-related shared preferences.
KeyValueStore(context: Context)
Constructor. |
open fun clear(): Unit
Clears all preferences in the file |
|
open fun clearAccessToken(): Unit
Clears the currently stored access token. |
|
open fun clearEmailPrefillValue(): Unit |
|
open fun readAccessToken(): TokenResponse?
Reads the stored access token, if a valid one is stored. |
|
open fun readAccessTokenCompat(clientSecret: String!): TokenResponse?
Reads the stored access token, if a valid one is stored. |
|
open fun readAuthCode(): String?
Gets the last auth code provided to the sdk |
|
open fun readClientAccessToken(): TokenResponse?
Reads the stored client token, if a valid one is stored. |
|
open fun readConnection(): String?
Gets the currently active connection type |
|
open fun readEmailPrefillValue(): String? |
|
open fun readPasswordlessToken(): PasswordlessToken?
Reads the stored passwordless token, if a valid one is stored. |
|
open fun writeAccessToken(jsonWebToken: TokenResponse!): Unit
Stores an access token. |
|
open fun writeAuthCode(authCode: String!): Unit
Sets the last auth code provided to the sdk |
|
open fun writeClientToken(clientCredentials: TokenResponse!): Unit
Stores a token representing client credentials. |
|
open fun writeConnection(connection: String!): Unit
Writes the currently active connection type |
|
open fun writeEmailPrefillValue(email: String!): Unit |
|
open fun writePasswordlessToken(passwordlessToken: PasswordlessToken!): Unit
Stores a passwordless token. |