start
fun start(redirectUrl: String, browserRedirectHandler: BrowserRedirectHandler, extraRequestParameters: Map<String, String> = emptyMap(), scope: String = "openid profile email offline_access"): CompletableFuture<TokenInfo>
Performs the full Authorization Code flow asynchronously.
Opens redirectUrl in a browser via browserRedirectHandler, waits for the redirect callback, and exchanges the authorization code for tokens.
Return
a CompletableFuture that completes with TokenInfo on success, or completes exceptionally on failure.
Parameters
redirectUrl
the registered redirect URI for this client.
browserRedirectHandler
handles opening the browser and capturing the redirect.
extraRequestParameters
additional authorization endpoint parameters.
scope
the scopes to request.