Skip to content

Commit

Permalink
clear the provider id on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Nov 5, 2024
1 parent 795ba12 commit acaced7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stores/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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<TOTPSetupResponse | false> {
const { data } = await axios.post("/accounts/users/setup_totp/");
Expand Down

0 comments on commit acaced7

Please sign in to comment.