Skip to content

Commit

Permalink
๐Ÿ› fix: callbackUrl ์—†์„์‹œ ์„ธ์…˜์žˆ๋Š” ๊ฒฝ์šฐ homed์œผ๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ #51
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Oct 6, 2024
1 parent 9473974 commit b39e5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function middleware(request: NextRequest) {
return NextResponse.redirect(new URL("/onboarding", request.url));
}

!!session
return !!session
? NextResponse.redirect(new URL("/", request.url))
: NextResponse.next();
}
Expand Down

0 comments on commit b39e5b4

Please sign in to comment.