Skip to main content

logout

Logs out the user, removes tokens from storage, and deletes cookies via deleteWebTokenCookie. Emits the 'authenticated' event with false.

Example

logout.js
logout();