Clear the Okta session
Next you should clear the browser session and app session (stored tokens) in memory. An event will fire once a user successfully logs out.
Note: This method applies only to the browser sign-in scenario. Use a combination of
revokeToken (optional) and
clearTokens methods to sign out when using custom sign-in.
Browser sign-in example:
Custom sign-in example: