From 42f84e878f5ac2644eb0b313caed2212392614c2 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Thu, 31 Jul 2025 15:59:40 +0200 Subject: [PATCH] fix: update redirectUri to use window.location.origin for dynamic URL handling #5 --- Web/src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/src/app/app.ts b/Web/src/app/app.ts index 163d5b3..f984c32 100644 --- a/Web/src/app/app.ts +++ b/Web/src/app/app.ts @@ -19,7 +19,7 @@ export class App implements OnInit { constructor(private readonly as: OAuthService, private readonly router: Router) { this.as.configure({ issuer: 'https://identity.lesko.me', - redirectUri: 'http://localhost:4200/login', + redirectUri: window.location.origin + '/login', clientId: '21131567-fea1-42a2-8907-21abd874eff8', scope: 'openid profile email', responseType: 'code',