logoutOfBrowser
suspend fun logoutOfBrowser(context: Context, redirectUrl: String, idToken: String): OAuth2ClientResult<Unit>
Initiates the OIDC logout redirect flow.
Note: OIDC Logout terminology is nuanced, see Logout Documentation for additional details.
Return
an OAuth2ClientResult: OAuth2ClientResult.Success of Unit on completed logout, or OAuth2ClientResult.Error (e.g. FlowCancelledException, FlowAlreadyInProgressException).
Parameters
context
the Android Activity which is used to display the logout flow via the configured WebAuthenticationProvider.
redirectUrl
the redirect URL.
idToken
the token used to identify the session to log the user out of.