Fix/refresh token (#9135)

This commit is contained in:
Antoine Moreaux
2024-12-18 19:10:16 +01:00
committed by GitHub
parent 5e03f4dfb1
commit 7375ab8d71

View File

@ -136,7 +136,7 @@ describe('RefreshTokenService', () => {
}); });
expect(appTokenRepository.save).toHaveBeenCalled(); expect(appTokenRepository.save).toHaveBeenCalled();
expect(jwtWrapperService.sign).toHaveBeenCalledWith( expect(jwtWrapperService.sign).toHaveBeenCalledWith(
{ sub: userId }, { sub: userId, workspaceId },
expect.objectContaining({ expect.objectContaining({
secret: 'mock-secret', secret: 'mock-secret',
expiresIn: mockExpiresIn, expiresIn: mockExpiresIn,