We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68feb6d commit fb64abeCopy full SHA for fb64abe
1 file changed
apps/web/middleware.ts
@@ -122,7 +122,11 @@ export default async function middleware(req: NextRequest) {
122
const session = shouldFetchSession ? await getSession(req) : null;
123
124
if (pathname.startsWith("/auth")) {
125
- if (session && pathname !== "/auth/reset-password") {
+ if (
126
+ session &&
127
+ pathname !== "/auth/reset-password" &&
128
+ pathname !== "/auth/bind-phone"
129
+ ) {
130
const redirectTo =
131
req.nextUrl.searchParams.get("redirectTo") ??
132
req.nextUrl.searchParams.get("callbackUrl");
0 commit comments