Skip to content

Instantly share code, notes, and snippets.

@PaulTR
Created December 2, 2021 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulTR/a5b6e1d5503a216c976189d9c80a737b to your computer and use it in GitHub Desktop.
Save PaulTR/a5b6e1d5503a216c976189d9c80a737b to your computer and use it in GitHub Desktop.
authorizationService.performTokenRequest(tokenExchangeRequest) { response, exception ->
if (exception != null) {
authState = AuthState()
} else {
if (response != null) {
authState.update(response, exception)
jwt = JWT(response.idToken!!)
}
}
persistState()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment