getToken
abstract suspend fun getToken(id: String, promptInfo: BiometricPrompt.PromptInfo? = Credential.Security.promptInfo): Token
Get Token from storage with associated id.
Return
Parameters
id
id of the Token to be retrieved.
promptInfo
BiometricPrompt.PromptInfo to be displayed if the stored Token is using biometric Credential.Security.
Throws
NoSuchElementException
if no storage entry with id exists.