1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Fix logout functionality

This commit is contained in:
Andrew Kingston 2020-10-14 20:28:02 +01:00
parent 90e46ab254
commit 9f9cc46988

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>