Skip to content

Commit

Permalink
change redirect on activate route
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk05 committed Feb 3, 2025
1 parent 92ff0b3 commit 62c3977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/api/v2/auth/activate/[token]/route.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import prisma from "@/prisma/prismaClient";
import { redirect } from "next/navigation";
import { NextResponse } from "next/server";

export async function GET(req, {params}) {
Expand Down Expand Up @@ -44,6 +45,6 @@ export async function GET(req, {params}) {
activatedAt: new Date()
}
})
return NextResponse.redirect(new URL("/auth/signIn", req.url))

redirect("/auth/signIn")
}

0 comments on commit 62c3977

Please sign in to comment.