set the right domain

This commit is contained in:
2026-04-19 13:30:47 +01:00
parent 00e8f167f9
commit 26cfe4eb5b
3 changed files with 50 additions and 3 deletions
+6 -2
View File
@@ -1,6 +1,10 @@
export async function GET() {
export async function GET(req: Request) {
const url = new URL(req.url);
const origin = url.origin;
const redirect = encodeURIComponent(
"http://localhost:3000/api/auth/callback"
`${origin}/api/auth/callback`
);
const keycloakUrl =