Skip to content

Update EXAMPLES.md so that resWithCombinedHeaders accounts for chunked cookies#2503

Merged
Piyush-85 merged 6 commits intoauth0:mainfrom
eliw00d:update-documentation-for-multiple-set-cookie-headers
May 6, 2026
Merged

Update EXAMPLES.md so that resWithCombinedHeaders accounts for chunked cookies#2503
Piyush-85 merged 6 commits intoauth0:mainfrom
eliw00d:update-documentation-for-multiple-set-cookie-headers

Conversation

@eliw00d
Copy link
Copy Markdown
Contributor

@eliw00d eliw00d commented Jan 26, 2026

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

I ran into an issue where one of the examples was not accounting for multiple set-cookie headers in authRes which led to appSession.1 not being present and so the middleware was unable to decode the JWE using only appSession.0. This might be very specific to my use case where I was upgrading to v4 from v3 and using this example to help with getAccessToken being used in some getServerSideProps functions.

📎 References

🎯 Testing

After running into this issue I changed the example code to copy all other headers and then copy all cookies to resWithCombinedHeaders and no longer ran into the issue.

…ked cookies

I ran into an issue where one of the examples was not accounting for multiple `set-cookie` headers in authRes which led to `appSession.1` not being present and so the middleware was unable to decode the JWE. This might be very specific to my use case where I was upgrading to v4 from v3 and using this example to help with getAccessToken being used in some getServerSideProps functions.
@eliw00d eliw00d requested a review from a team as a code owner January 26, 2026 21:28
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.08%. Comparing base (c4b3361) to head (115fce3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2503   +/-   ##
=======================================
  Coverage   90.08%   90.08%           
=======================================
  Files          68       68           
  Lines        8209     8209           
  Branches     1759     1758    -1     
=======================================
  Hits         7395     7395           
  Misses        802      802           
  Partials       12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Piyush-85 Piyush-85 merged commit 4bbe383 into auth0:main May 6, 2026
8 of 9 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.

3 participants