Skip to content

Commit 9e58bc4

Browse files
committed
fix(graduate): 사용자 가입 페이지 접근 허용
1 parent 7f31fe0 commit 9e58bc4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/graduate/src/routes/__root.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export interface AuthContext {
1616

1717
export const Route = createRootRouteWithContext<AuthContext>()({
1818
beforeLoad: ({ context, location }) => {
19-
if (!context.auth.isAuthenticated && location.pathname !== '/login') {
19+
if (location.pathname === '/login' || location.pathname === '/signup') {
20+
return;
21+
}
22+
23+
if (!context.auth.isAuthenticated) {
2024
throw redirect({
2125
to: '/login',
2226
});

0 commit comments

Comments
 (0)