From e1a68e82f25c3c524118ed9a2851e4461b895360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Mart=C3=ADn?= Date: Fri, 12 Dec 2025 17:18:27 +0100 Subject: [PATCH] Update user linking to OIDC by changing provider from ANONYMOUS to OIDC --- apps/api/src/app/auth/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/auth/auth.service.ts b/apps/api/src/app/auth/auth.service.ts index 3a7f338f0..21d7c4248 100644 --- a/apps/api/src/app/auth/auth.service.ts +++ b/apps/api/src/app/auth/auth.service.ts @@ -137,10 +137,10 @@ export class AuthService { throw new Error('Only users with token authentication can link OIDC'); } - // Update user with thirdPartyId (keeping provider as ANONYMOUS for dual auth) + // Update user with thirdPartyId and switch provider to OIDC await this.userService.updateUser({ where: { id: userId }, - data: { thirdPartyId } + data: { thirdPartyId, provider: 'OIDC' } }); return this.jwtService.sign({ id: userId });