Skip to content

Commit

Permalink
Merge pull request #76 from prgrms-fe-devcourse/feature/Deploy-1.1.1
Browse files Browse the repository at this point in the history
Hotfix: ํ† ํฐ ์ €์žฅ ํ‚ค ๋ณ€๊ฒฝ
  • Loading branch information
SoJuSo authored Jan 15, 2024
2 parents 75a22c2 + 6a73617 commit 7cd0824
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { aesDecrypt } from "./utils/crypto";
import { Spinner } from "./components/common/Spinner";

const App = () => {
const [token, setToken] = useLocalStorage("token");
const [token, setToken] = useLocalStorage("auth_token");
const { isLogIn, setAuth } = useAuth();
const { setMe } = useMe();

Expand Down
2 changes: 1 addition & 1 deletion src/pages/LoginPage/LoginPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const LoginPageView = () => {
const { VITE_ADMIN_EMAIL, VITE_ADMIN_PASSWORD } = import.meta.env;
const { setMe } = useMe();
const { setAuth } = useAuth();
const [_, storeToken] = useLocalStorage("token");
const [_, storeToken] = useLocalStorage("auth_token");
const {
register,
getValues,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProfilePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Spinner } from "@/components/common/Spinner";
const ProfilePage = () => {
const { setProfileName, setProfileImage, setProfileCover, profileInit } =
useProfile();
const [, setToken] = useLocalStorage("token");
const [, setToken] = useLocalStorage("auth_token");
const [, setKeywords] = useLocalStorage("keywords");
const { setNotification } = useNotification();
const { setMe } = useMe();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignInPage/SignInPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface ISigninModify extends ISignIn {
const SignInPage = () => {
const { setMe } = useMe();
const { setAuth } = useAuth();
const [_, storeToken] = useLocalStorage("token");
const [_, storeToken] = useLocalStorage("auth_token");
const {
watch,
register,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SplashPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Image } from "@/components/common";
import { useLocalStorage } from "@/hooks/useLocalStorage";

const SplashPage = () => {
const [token, _] = useLocalStorage("token");
const [token, _] = useLocalStorage("auth_token");
const navigate = useNavigate();
useEffect(() => {
const redirectTimeout = setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/AuthRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type TAuthRouteProps = {
} & RouteProps;

const AuthRoute = ({ element, ...rest }: TAuthRouteProps) => {
const [token, _] = useLocalStorage("token");
const [token, _] = useLocalStorage("auth_token");
rootAPI.defaults.headers.common["Authorization"] =
"Bearer " + aesDecrypt(token);

Expand Down

0 comments on commit 7cd0824

Please sign in to comment.