Fix logout functionality

This commit is contained in:
Andrew Kingston 2020-10-14 20:28:02 +01:00
parent 90e46ab254
commit 9f9cc46988
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@
}
const logOut = () => {
localStorage.removeItem("budibase:token")
document.cookie =
"budibase:token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"
location.reload()
}
</script>