diff --git a/packages/twenty-server/src/engine/core-modules/auth/token/services/refresh-token.service.spec.ts b/packages/twenty-server/src/engine/core-modules/auth/token/services/refresh-token.service.spec.ts index 5a254c7621d3..5ac7ada61581 100644 --- a/packages/twenty-server/src/engine/core-modules/auth/token/services/refresh-token.service.spec.ts +++ b/packages/twenty-server/src/engine/core-modules/auth/token/services/refresh-token.service.spec.ts @@ -136,7 +136,7 @@ describe('RefreshTokenService', () => { }); expect(appTokenRepository.save).toHaveBeenCalled(); expect(jwtWrapperService.sign).toHaveBeenCalledWith( - { sub: userId }, + { sub: userId, workspaceId }, expect.objectContaining({ secret: 'mock-secret', expiresIn: mockExpiresIn,