Skip to content

Instantly share code, notes, and snippets.

@PaulTR
Created December 2, 2021 23:33
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/57f7ba92f078fe1b4d331750a38eda7e to your computer and use it in GitHub Desktop.
Save PaulTR/57f7ba92f078fe1b4d331750a38eda7e to your computer and use it in GitHub Desktop.
private fun signOut() {
try {
val endSessionRequest = EndSessionRequest.Builder(authServiceConfig)
.setPostLogoutRedirectUri(Uri.parse(Constants.URL_LOGOUT_REDIRECT))
.setIdTokenHint(authState.accessToken)
.build()
val intent = authorizationService.getEndSessionRequestIntent(endSessionRequest)
launchIntent(intent)
} catch( e: Exception ) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment