api-client/packages/hoppscotch-backend
No jae gun 2dc3463b69
fix(backend): use duration instead of timestamp for auth cookie maxAge (#5821)
The maxAge option in Express's res.cookie() expects a duration in milliseconds, not an absolute timestamp. The previous code was adding `Date.now()` to the validity period, causing cookies to expire decades in the future instead of the intended 1 day / 7 days.

This was particularly problematic on macOS due to stricter cookie handling by Safari/WebKit.

Addresses #5818

Co-authored-by: njg7194 <njg7194@users.noreply.github.com>
2026-02-04 11:08:07 +05:30
..
prisma fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647) 2026-01-23 00:32:48 +06:00
src fix(backend): use duration instead of timestamp for auth cookie maxAge (#5821) 2026-02-04 11:08:07 +05:30
test feat: added hoppscotch-backend as a package 2022-12-05 12:36:11 +05:30
.dockerignore chore: added docker files for bringing the container up 2022-12-06 13:18:02 +05:30
.gitignore chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
.prettierrc chore: cleaned up hopp-backend package and modified docker and docker-compose files 2022-12-08 22:19:14 +05:30
backend.Caddyfile feat: mock server (#5482) 2025-10-27 23:03:22 +05:30
Dockerfile feat: update node version to node20-apline3.19 (#4040) 2024-05-10 14:24:34 +05:30
eslint.config.js chore(backend): update dependencies (#5085) 2025-05-22 16:32:58 +05:30
global.d.ts feat: added jest and jest-fp-ts setup 2022-12-20 14:41:50 +05:30
jest.setup.js feat: added jest and jest-fp-ts setup 2022-12-20 14:41:50 +05:30
nest-cli.json chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
package.json chore: bump version to 2026.1.0 2026-01-23 21:18:39 +05:30
prisma.config.ts chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
prod_run.mjs chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
tsconfig.build.json refactor: slim down the backend containers (#4233) 2024-08-08 11:31:13 +05:30
tsconfig.json chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30