Skip to content

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

Open
eliw00d wants to merge 3 commits intoauth0:mainfrom
eliw00d:update-documentation-for-multiple-set-cookie-headers
Open

Update EXAMPLES.md so that resWithCombinedHeaders accounts for chunked cookies#2503
eliw00d wants to merge 3 commits intoauth0:mainfrom
eliw00d:update-documentation-for-multiple-set-cookie-headers

Conversation

@eliw00d
Copy link

@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
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.

1 participant

Comments