Skip to content

Commit 34d834c

Browse files
committed
fix(auth): add path option to cookie settings for proper routing
1 parent cb06c19 commit 34d834c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/backend/src/auth/auth.service.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ describe('AuthService', () => {
253253
expect(res.cookie).toHaveBeenCalledWith('token', 'access-token', {
254254
domain: '.test.com',
255255
maxAge: 3600000,
256+
path: '/',
256257
});
257258

258259
expect(res.cookie).toHaveBeenCalledWith(
@@ -261,6 +262,7 @@ describe('AuthService', () => {
261262
{
262263
domain: '.test.com',
263264
maxAge: 3600000,
265+
path: '/',
264266
},
265267
);
266268

0 commit comments

Comments
 (0)