We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78b9db commit 0d54192Copy full SHA for 0d54192
server/src/auth/auth.service.spec.ts
@@ -45,6 +45,10 @@ describe('AuthService', () => {
45
provide: JwtService,
46
useValue: mockJwtService,
47
},
48
+ {
49
+ provide: 'COOKIE_EXPIRES_IN',
50
+ useValue: '3600',
51
+ },
52
{
53
provide: 'FRONTEND_URL',
54
useValue: 'http://frontend.test.com',
@@ -459,15 +463,15 @@ describe('AuthService', () => {
459
463
460
464
expect(res.cookie).toHaveBeenCalledWith('token', 'access-token', {
461
465
domain: '.test.com',
462
- maxAge: 1,
466
+ maxAge: 3600,
467
});
468
469
expect(res.cookie).toHaveBeenCalledWith(
470
'refresh_token',
471
'refresh-token',
472
473
474
475
476
);
477
0 commit comments