Fix/refresh token (#9135)
This commit is contained in:
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user