From: Michael Tremer Date: Fri, 20 Jun 2025 12:03:47 +0000 (+0000) Subject: frontend: Log in users when the app is being reloaded X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a015540d67073ce8bce560a336106c2323eaef5;p=pbs.git frontend: Log in users when the app is being reloaded Signed-off-by: Michael Tremer --- diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 478422f9..c529a52d 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -4,6 +4,17 @@ // Authentication import { useAuthStore } from '@/stores/auth' const auth = useAuthStore() + + // Import utils + import { deleteAccessToken } from "@/utils/auth"; + + function logout() { + // Drop all stored authentication data + auth.logout(); + + // Drop the current access token + deleteAccessToken(); + }