diff --git a/components/layout/layout.auth.with.jsx b/components/layout/layout.auth.with.jsx index 9dd5722..570c16c 100644 --- a/components/layout/layout.auth.with.jsx +++ b/components/layout/layout.auth.with.jsx @@ -16,7 +16,7 @@ const LayoutWithAuth = ({ children }) => { useEffect(() => { if (process.env.NEXT_PUBLIC_ENV === 'local') return; - PoPoAxios.get('/auth/verifyToken', { + PoPoAxios.get('/auth/verifyToken/admin', { withCredentials: true, }).catch(() => { router.push('/login'); diff --git a/pages/login.jsx b/pages/login.jsx index b3ca8b5..11e5a50 100644 --- a/pages/login.jsx +++ b/pages/login.jsx @@ -13,7 +13,7 @@ const LoginPage = () => { const [password, setPW] = useState(''); useEffect(() => { - PoPoAxios.get('/auth/verifyToken', { + PoPoAxios.get('/auth/verifyToken/admin', { withCredentials: true, }) .then(() => {