migrate
suspend fun migrate( context: Context, sessionClient: SessionClient, credential: Credential): LegacyTokenMigration.Result
Content copied to clipboard
Attempts to migrate a token from a SessionClient to a Credential.
Return
a Result with the outcome of the migration.
Parameters
context
used for storing the status of previous migrations in Shared Preferences.
sessionClient
a configured session client with the stored tokens from a previous authentication where the token will be migrated from.
credential
the credential where the token should be migrated to.