mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 21:26:40 +00:00
fix: clears auth token
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||||
import { AxiosError } from "axios";
|
import { AxiosError } from "axios";
|
||||||
|
|
||||||
import SecurityClient from "@app/components/utilities/SecurityClient";
|
|
||||||
import { apiRequest } from "@app/config/request";
|
import { apiRequest } from "@app/config/request";
|
||||||
import { SessionStorageKeys } from "@app/const";
|
import { SessionStorageKeys } from "@app/const";
|
||||||
import { queryClient as qc } from "@app/hooks/api/reactQuery";
|
import { queryClient as qc } from "@app/hooks/api/reactQuery";
|
||||||
@@ -87,8 +86,8 @@ export const useDeleteMe = () => {
|
|||||||
localStorage.removeItem("tag");
|
localStorage.removeItem("tag");
|
||||||
localStorage.removeItem("PRIVATE_KEY");
|
localStorage.removeItem("PRIVATE_KEY");
|
||||||
localStorage.removeItem("orgData.id");
|
localStorage.removeItem("orgData.id");
|
||||||
|
|
||||||
setAuthToken("");
|
setAuthToken("");
|
||||||
SecurityClient.setToken("");
|
|
||||||
|
|
||||||
queryClient.clear();
|
queryClient.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user