From fc15366efafa61bb2085f3e142f0d856347ea5bc Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:42:10 +0100 Subject: [PATCH] fix(mana-core-auth): fix TypeScript error in oidc-login controller --- services/mana-core-auth/src/auth/oidc-login.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/mana-core-auth/src/auth/oidc-login.controller.ts b/services/mana-core-auth/src/auth/oidc-login.controller.ts index 934edb397..c2aa44e99 100644 --- a/services/mana-core-auth/src/auth/oidc-login.controller.ts +++ b/services/mana-core-auth/src/auth/oidc-login.controller.ts @@ -25,13 +25,13 @@ export class OidcLoginController { async getLoginPage(@Query() query: Record, @Res() res: Response) { // Handle returnUrl parameter (when redirected from authorization endpoint) let returnUrl = query.returnUrl || '/'; - let clientId = query.client_id; + let clientId: string | undefined = query.client_id; // If no direct client_id but we have returnUrl, extract client_id from it if (!clientId && query.returnUrl) { try { const returnUrlParams = new URLSearchParams(query.returnUrl.split('?')[1] || ''); - clientId = returnUrlParams.get('client_id') || undefined; + clientId = returnUrlParams.get('client_id') ?? undefined; } catch { // Ignore parsing errors }