leave
Logs out the current user. It takes no parameters, sets user.is to null, and removes any credentials saved by store() from both local storage and session storage.
Example
logoutButton.addEventListener("click", () => {
user.leave()
})Logs out the current user. It takes no parameters, sets user.is to null, and removes any credentials saved by store() from both local storage and session storage.
logoutButton.addEventListener("click", () => {
user.leave()
})