handleAuthorizationResponse

fun handleAuthorizationResponse(intent: Intent, completion: (Completion<String?>) -> Unit)

Sends a request to the authorization service to exchange a code granted as part of an authorization request for a token.

Parameters

intent

Represents the Intent from the Chrome Custom Tab.

completion

The block to be called when the request is completed including either a valid accessToken or Throwable.