Skip to content

feat/return-cookies#33

Open
frectonz wants to merge 7 commits intobetter-auth:mainfrom
frectonz:feat/return-cookies
Open

feat/return-cookies#33
frectonz wants to merge 7 commits intobetter-auth:mainfrom
frectonz:feat/return-cookies

Conversation

@frectonz
Copy link

@frectonz frectonz commented Aug 14, 2025

This PR introduces support for the returnCookies field, which behaves similarly to the returnHeaders field. When enabled, the returnCookies field will parse all the cookies set by an endpoint and return them.

This feature is particularly useful for individuals using better auth as a server-only library. It allows them to avoid manually parsing the set cookie headers when they want to set them themselves via their preferred web framework.

better-auth/better-auth#3851

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@frectonz
Copy link
Author

Couldn't sign the CLA, got this error.
Screenshot 2026-02-25 at 8 06 58 in the evening

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.

2 participants