chore: update auth service

This commit is contained in:
Steven
2023-11-23 22:02:19 +08:00
parent 38e5398cb9
commit b7999a4db2
10 changed files with 65 additions and 110 deletions

View File

@ -6,7 +6,6 @@ import { authServiceClient } from "@/grpcweb";
import useWorkspaceStore from "@/stores/v1/workspace";
import { PlanType } from "@/types/proto/api/v2/subscription_service";
import { Role } from "@/types/proto/api/v2/user_service";
import { removeAccessToken } from "@/utils/auth";
import useUserStore from "../stores/v1/user";
import AboutDialog from "./AboutDialog";
import Icon from "./Icon";
@ -24,7 +23,6 @@ const Header: React.FC = () => {
const handleSignOutButtonClick = async () => {
await authServiceClient.signOut({});
removeAccessToken();
localStorage.removeItem("userId");
window.location.href = "/auth";
};