Skip to content

Commit 12fd54c

Browse files
author
Paul Asjes
committed
Redirect to error pages for all sign in errors
1 parent 882bf94 commit 12fd54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/callback/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function GET(request: NextRequest) {
4747
error: error instanceof Error ? error.message : String(error),
4848
};
4949
console.error(errorRes);
50-
return NextResponse.json(errorRes);
50+
return NextResponse.redirect(new URL("/error", request.url));
5151
}
5252
}
5353

0 commit comments

Comments
 (0)