migrateIfNeeded
suspend fun migrateIfNeeded(user: UserAccount? = UserAccountManager.getInstance().currentUser, timeoutMs: Long = DEFAULT_TIMEOUT_MS): DpopMigrationManager.Outcome
Upgrades user (default: the current user) to a DPoP-bound refresh token if needed.
Can be called from any thread. The result is delivered on the main thread.
Parameters
user
The user to upgrade, or null (yields Outcome.NotNeeded).
timeoutMs
How long to wait for the SDK to report back. When calls are coalesced the timeout of the call that started the upgrade applies. A value <= 0 disables the timeout.
fun migrateIfNeeded(user: UserAccount? = UserAccountManager.getInstance().currentUser, timeoutMs: Long = DEFAULT_TIMEOUT_MS, callback: DpopMigrationManager.Callback)
Callback flavor of migrateIfNeeded for Java callers. callback is invoked once on the main thread.