make it dynamic

This commit is contained in:
2026-04-19 13:13:35 +01:00
parent 80337ff874
commit b834b26087
+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 =