start

suspend fun start(idToken: String, deviceSecret: String, audience: String = "api://default", scope: String = client.configuration.defaultScope): OAuth2ClientResult<Token>

Initiates the Token Exchange flow.

Parameters

idToken

the id token for the user to create a new token for.

deviceSecret

the Token.deviceSecret obtained via another authentication flow.

audience

the audience of the authorization server. Defaults to api://default.

scope

the scopes to request during sign in. Defaults to the configured client.