Skip to content

Commit c680dc4

Browse files
committed
Merge branch 'main' into DEVT-32-Classroom-Cards
2 parents 8f44476 + 0fe121b commit c680dc4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2437
-1790
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cSpell.words": [
33
"bitnami",
4+
"Chatrooms",
45
"pipelinerun",
56
"Ragflow",
67
"supabase",
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NextResponse } from "next/server";
2-
import { createClient } from "@/utils/supabase/server";
2+
import { createClient } from "@shared/utils/supabase/server";
33

44
export async function GET(request: Request) {
55
const { searchParams, origin } = new URL(request.url);
@@ -8,10 +8,8 @@ export async function GET(request: Request) {
88
const next = searchParams.get("next") ?? "/";
99

1010
const error = searchParams.get("error_description");
11-
if (error && error === "Database error saving new user") {
12-
return NextResponse.redirect(
13-
`${origin}/auth/unauthorized?message=ORGANIZATION_EMAIL_REQUIRED`
14-
);
11+
if (error) {
12+
return NextResponse.redirect(`${origin}/error/unauthorized`);
1513
}
1614

1715
if (code) {

0 commit comments

Comments
 (0)