From 55447f282d73957781a77e4a74a8946205b32250 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 14 Oct 2020 20:12:41 +0100 Subject: [PATCH] Add log out functionality --- packages/standard-components/src/Navigation.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/standard-components/src/Navigation.svelte b/packages/standard-components/src/Navigation.svelte index 359e0c53a9..03c4b4d3f8 100644 --- a/packages/standard-components/src/Navigation.svelte +++ b/packages/standard-components/src/Navigation.svelte @@ -16,6 +16,11 @@ } } } + + const logOut = () => { + localStorage.removeItem("budibase:token") + location.reload() + }