next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

feat(cookies): make pkce and state maxAge configurable on the cookies…

Open jason-brady-mythical opened this issue 3 years ago • 5 comments

… (#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

jason-brady-mythical avatar Jun 15 '22 19:06 jason-brady-mythical

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)

vercel[bot] avatar Jun 15 '22 19:06 vercel[bot]

@balazsorban44 Any chance of getting this PR looked at some time soon? Thanks.

jason-brady-mythical avatar Jul 11 '22 21:07 jason-brady-mythical

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 💚

ThangHuuVu avatar Jul 12 '22 15:07 ThangHuuVu

Yes I will add some tests.

jason-brady-mythical avatar Jul 12 '22 15:07 jason-brady-mythical

@ThangHuuVu updated this pr with tests around createPKCE and createState.

Screen Shot 2022-09-13 at 1 43 38 PM

jason-brady-mythical avatar Sep 13 '22 18:09 jason-brady-mythical

@ThangHuuVu @balazsorban44 Anything else needed to try and get this merged?

jason-brady-mythical avatar Sep 26 '22 15:09 jason-brady-mythical

This is a blocker for me as well. Do we know how long until this will be merged and released?

twhitson avatar Sep 28 '22 19:09 twhitson

Thanks for the tests as well :clap:

ndom91 avatar Nov 27 '22 12:11 ndom91

@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 avatar Nov 28 '22 22:11 jason-brady-mythical

@jason-brady-mythical I approved the workflow, could you update the branch one more time?

ThangHuuVu avatar Nov 30 '22 15:11 ThangHuuVu

@ThangHuuVu Updated, not sure what else is needed.

jason-brady-mythical avatar Nov 30 '22 15:11 jason-brady-mythical

#5664

C3mkal avatar Dec 01 '22 10:12 C3mkal