endSession
const endSession: EndSessionFn;
Ends the current user session and redirects to logout page. Revokes tokens and clears session storage.
Param
Session end parameters
Param
OAuth client ID
Param
URI to redirect after logout
Param
OAuth response type
Param
OAuth scopes
Param
Optional error code
Param
Optional custom logout URL to redirect to instead of IDP
Param
Skip token revocation if true
Example
await endSession({
clientId: 'my-app',
redirectUri: window.location.origin,
scope: 'openid'
});