Skip to content

Commit d8e575e

Browse files
paabloLCjfagoagas
authored andcommitted
fix: update redirect URL for SSO (#7493)
1 parent f7ed5bd commit d8e575e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/app/api/auth/callback/github/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function GET(req: Request) {
5353
// eslint-disable-next-line no-console
5454
console.error("SignIn error:", error);
5555
return NextResponse.redirect(
56-
new URL("/sign-in?error=AuthenticationFailed", req.url),
56+
new URL("/sign-in?error=AuthenticationFailed", baseUrl),
5757
);
5858
}
5959
} catch (error) {

ui/app/api/auth/callback/google/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function GET(req: Request) {
5353
// eslint-disable-next-line no-console
5454
console.error("SignIn error:", error);
5555
return NextResponse.redirect(
56-
new URL("/sign-in?error=AuthenticationFailed", req.url),
56+
new URL("/sign-in?error=AuthenticationFailed", baseUrl),
5757
);
5858
}
5959
} catch (error) {

0 commit comments

Comments
 (0)