feat(auth): add cookie-signature dependency and enhance session cookie handling

- Introduced the `@types/cookie-signature` dependency to facilitate proper signing of session cookies.
- Updated session middleware to create a securely signed cookie using the session secret, improving session management for mobile applications.
- Enhanced logging for cookie creation and error handling to aid in debugging session issues.
This commit is contained in:
Chamika J
2025-08-06 11:55:43 +05:30
parent 0959f3f926
commit 7ce4ba12ab
3 changed files with 43 additions and 16 deletions

View File

@@ -108,6 +108,7 @@
"@types/compression": "^1.7.2",
"@types/connect-flash": "^0.0.37",
"@types/cookie-parser": "^1.4.3",
"@types/cookie-signature": "^1.1.2",
"@types/cron": "^2.0.1",
"@types/crypto-js": "^4.2.2",
"@types/csurf": "^1.11.2",