start

fun start(idToken: String, deviceSecret: String, audience: String? = null, scope: String = "openid profile email offline_access"): CompletableFuture<TokenInfo>

Initiates the token exchange flow asynchronously.

Return

a CompletableFuture that completes with TokenInfo on success, or completes exceptionally on failure.

Parameters

idToken

the ID token for the user.

deviceSecret

the device secret from a previous authentication flow.

audience

optional audience; pass null to omit from the request.

scope

the scopes to request.