Skip to content

feat(be-w3a-115): configure secure cookie storage for session JWTs#645

Merged
soomtochukwu merged 1 commit into
DXmakers:mainfrom
michaelvic123:feat/be-w3a-115-secure-cookie-storage
May 29, 2026
Merged

feat(be-w3a-115): configure secure cookie storage for session JWTs#645
soomtochukwu merged 1 commit into
DXmakers:mainfrom
michaelvic123:feat/be-w3a-115-secure-cookie-storage

Conversation

@michaelvic123
Copy link
Copy Markdown
Contributor

Description

Implements secure cookie storage for session JWTs as specified in BE-W3A-115.

Changes

  • Added cookie-parser dependency
  • Configured CORS with credentials support
  • Updated auth routes to set secure HttpOnly cookies for access and refresh tokens
  • Updated auth guard to read access token from cookie (with fallback to Authorization header for backward compatibility)
  • Updated frontend API client to use credentials: "include"
  • Updated logout route to clear cookies

Security

  • HttpOnly cookies prevent XSS attacks
  • Secure cookies (in production) prevent MITM attacks
  • SameSite cookies prevent CSRF attacks
  • Backward compatibility maintained with existing Authorization header approach

closes #469

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@michaelvic123 is attempting to deploy a commit to the mAzI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@michaelvic123 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@michaelvic123 michaelvic123 force-pushed the feat/be-w3a-115-secure-cookie-storage branch from 5395ab0 to a4d8521 Compare May 29, 2026 12:26
@soomtochukwu soomtochukwu merged commit 727037c into DXmakers:main May 29, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE-W3A-115] Web3 Signature Security and Auditing - Step 115

2 participants