TokenExchangeFlow

Implements the Token Exchange flow for Native SSO.

Use start to exchange an existing ID token and device secret for new tokens:

val flow = TokenExchangeFlow(client)
val tokenInfo = flow.start(idToken = "...", deviceSecret = "...").getOrThrow()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun start(idToken: String, deviceSecret: String, audience: String? = null, scope: String = "openid profile email offline_access"): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>

Initiates the token exchange flow.