feat: add email verification page and allow public access via middleware.

This commit is contained in:
pradeepkumar
2025-12-22 12:50:28 +05:30
parent 5c6ab92056
commit 060643fed8
2 changed files with 137 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import { auth } from "@/auth";
import { NextResponse } from "next/server";
// Public routes that don't require authentication
const publicRoutes = ["/login", "/signup", "/forgot-password", "/reset-password"];
const publicRoutes = ["/login", "/signup", "/forgot-password", "/reset-password", "/verify-email"];
export default auth((req) => {
const { nextUrl } = req;