diff --git a/libs/api-config/src/lib/api-logger.ts b/libs/api-config/src/lib/api-logger.ts index 3c95e75e..b64e0851 100644 --- a/libs/api-config/src/lib/api-logger.ts +++ b/libs/api-config/src/lib/api-logger.ts @@ -69,7 +69,7 @@ export const httpLogger = pinoHttp({ }, customProps: function (req, res) { return { - userId: (req as any).user?.id, + userId: (req as any).session?.user?.id, sessionId: (req as any).session?.id, }; },