Fix logout functionality
This commit is contained in:
parent
90e46ab254
commit
9f9cc46988
|
@ -18,7 +18,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const logOut = () => {
|
const logOut = () => {
|
||||||
localStorage.removeItem("budibase:token")
|
document.cookie =
|
||||||
|
"budibase:token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"
|
||||||
location.reload()
|
location.reload()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue