From 94b8b7b8b5eea2f4047cd29aedf4228c2586817f Mon Sep 17 00:00:00 2001 From: ondal Date: Sun, 6 Apr 2025 13:46:57 +0900 Subject: [PATCH] release --- src/contexts/AuthContext.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contexts/AuthContext.js b/src/contexts/AuthContext.js index 0483cb5..8aa4822 100644 --- a/src/contexts/AuthContext.js +++ b/src/contexts/AuthContext.js @@ -17,6 +17,9 @@ export const AuthProvider = ({ children }) => { }, []); const login = async (userId, password) => { + removeAuthToken(); + setCurrentUser(null); + try { const response = await authApi.login({ userId, password }); const { accessToken } = response.data.data;