mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-23 12:35:51 +00:00
make it dynamic
This commit is contained in:
@@ -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(
|
const redirect = encodeURIComponent(
|
||||||
"http://localhost:3000/api/auth/callback"
|
`${origin}/api/auth/callback`
|
||||||
);
|
);
|
||||||
|
|
||||||
const keycloakUrl =
|
const keycloakUrl =
|
||||||
|
|||||||
Reference in New Issue
Block a user