mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Fix browser session refreshes not working (#9212)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -202,6 +202,13 @@ describe('AuthService', () => {
|
||||
sameSite: 'lax',
|
||||
secure: false,
|
||||
});
|
||||
|
||||
const newToken = res.cookie.mock.calls[0].at(1);
|
||||
expect(newToken).not.toBe(validToken);
|
||||
expect(await authService.resolveJwt(newToken, req, res)).toEqual(user);
|
||||
expect((jwt.decode(newToken) as jwt.JwtPayload).browserId).toEqual(
|
||||
(jwt.decode(validToken) as jwt.JwtPayload).browserId,
|
||||
);
|
||||
});
|
||||
|
||||
it('should refresh the cookie only if less than 1/4th of time is left', async () => {
|
||||
|
||||
Reference in New Issue
Block a user