From 670073e3c2cb3e957a5a23f78bbc2e8c07620dd3 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sun, 15 Feb 2026 23:55:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(gifts):=20fix=20userId=20und?= =?UTF-8?q?efined=20-=20guard=20used=20userId=20but=20controller=20expecte?= =?UTF-8?q?d=20sub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/mana-core-auth/src/common/guards/jwt-auth.guard.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/mana-core-auth/src/common/guards/jwt-auth.guard.ts b/services/mana-core-auth/src/common/guards/jwt-auth.guard.ts index 466f5eef0..de1970822 100644 --- a/services/mana-core-auth/src/common/guards/jwt-auth.guard.ts +++ b/services/mana-core-auth/src/common/guards/jwt-auth.guard.ts @@ -57,7 +57,9 @@ export class JwtAuthGuard implements CanActivate { this.logger.debug('Token verification successful', { userId: payload.sub }); // Attach user to request + // Include both 'sub' and 'userId' for compatibility with different controllers request.user = { + sub: payload.sub, userId: payload.sub, email: payload.email as string, role: payload.role as string,