Skip to content

Commit

Permalink
Verify admin (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyojeongyunn authored Jun 1, 2024
1 parent bb8a574 commit 0a636ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/layout/layout.auth.with.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion pages/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const LoginPage = () => {
const [password, setPW] = useState('');

useEffect(() => {
PoPoAxios.get('/auth/verifyToken', {
PoPoAxios.get('/auth/verifyToken/admin', {
withCredentials: true,
})
.then(() => {
Expand Down

0 comments on commit 0a636ad

Please sign in to comment.