From acaced7122c8fba26869ecd5f2ab05f0f4bd862e Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:26:22 +0000 Subject: [PATCH] clear the provider id on logout --- src/stores/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 57db6375..61ec197c 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -31,6 +31,7 @@ export const useAuthStore = defineStore("auth", { name: useStorage("name", null), token: useStorage("access_token", null), ssoLoginProvider: useStorage("sso_provider", null), + provider_id: useStorage("provider_id", null), }), getters: { loggedIn: (state) => { @@ -72,6 +73,7 @@ export const useAuthStore = defineStore("auth", { this.username = null; this.name = null; this.ssoLoginProvider = null; + this.provider_id = null; }, async setupTotp(): Promise { const { data } = await axios.post("/accounts/users/setup_totp/");