The logout() method allows to log the current user out.
The following codeblocks show an example on how to use the logout() method:
HTML:
<button id="logoutButton">Log Out</button>
JavaScript:
document.getElementById("logoutButton").addEventListener("click", () => {
FluidTopicsAuthenticationService.logout();
});