fix: update redirectUri to use window.location.origin for dynamic URL handling #5

This commit is contained in:
Marek Lesko
2025-07-31 15:59:40 +02:00
parent 66757b4b9f
commit 42f84e878f

View File

@@ -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',