next-auth
next-auth copied to clipboard
feat(cookies): make pkce and state maxAge configurable on the cookies…
… (#4660)
☕️ Reasoning
Currently the maxAge and the expires on the cookie options are being set to a hard coded 15 minutes. These changes allow the consumer to configure the maxAge for the pkce and state cookies options. If the cookie options are not set they are defaulted to the 15 minutes.
🧢 Checklist
- [x] Documentation
- [ ] Tests
- [x] Ready to be merged
🎫 Affected issues
Fixes: 4660
📌 Resources
- Contributing guidelines
- Code of conduct
- Contributing to Open Source
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| next-auth | ✅ Ready (Inspect) | Visit Preview | Nov 30, 2022 at 3:38PM (UTC) |
@balazsorban44 Any chance of getting this PR looked at some time soon? Thanks.
Thanks for the clean PR!
Would you be interested in adding some tests to createPKCE and createState as well?
We're trying to increase test coverage in this project, so it would be really nice if you could add them to the PR too 💚
Yes I will add some tests.
@ThangHuuVu updated this pr with tests around createPKCE and createState.

@ThangHuuVu @balazsorban44 Anything else needed to try and get this merged?
This is a blocker for me as well. Do we know how long until this will be merged and released?
Thanks for the tests as well :clap:
@ndom91 @ThangHuuVu I am not able to merge as this needs a maintainer to approve running workflows. Is there something else I need to do?
@jason-brady-mythical I approved the workflow, could you update the branch one more time?
@ThangHuuVu Updated, not sure what else is needed.
#5664