Skip to content

Commit

Permalink
feat: 로그아웃시 인트로 페이지로 (#1226)
Browse files Browse the repository at this point in the history
Tekiter authored Dec 1, 2023
1 parent 5edd004 commit 4752fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/auth/AuthRequired.tsx
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ const AuthRequired: FC<AuthRequiredProps> = ({ children }) => {
if (router.isReady && accessToken === null) {
runOnce(() => {
lastUnauthorized.setPath(router.asPath);
router.replace(playgroundLink.login());
router.replace(playgroundLink.intro());
});
}
}, [router, router.isReady, accessToken, lastUnauthorized, runOnce]);
@@ -48,7 +48,7 @@ const AuthRequired: FC<AuthRequiredProps> = ({ children }) => {
if (err.response?.status === 401) {
runOnce(() => {
resetAccessToken();
router.replace(playgroundLink.login());
router.replace(playgroundLink.intro());
});
}
}

0 comments on commit 4752fd8

Please sign in to comment.