Closed Onxi95 closed 3 weeks ago
Hey @Onxi95!
Thanks for a heads up! I am glad you find the library helpful 🙌
Thanks so much for the reproduction and great problem description. It helped me to immediately focus on the fix.
You are right, I've missed to pass serialization options to cookie setter.
I've prepared a fix and will push to canary branch shortly
I'm not sure if it's the only place, though.
I also fixed two other issues on the occasion. Thanks for that 🎉
The fix has been released in v.1.7.0-canary.9
. Could you try it and let me know how it works?
Hello @awinogrodzki!
Works like a charm :muscle: Thanks for a really quick response and fix! I think we can close the issue :smile: have a nice day!
Hi! Thanks for creating this awesome library - without it, implementing Firebase in our Next.js app dir project would have taken much longer! :muscle:
Link to the code that reproduces this issue
https://github.com/awinogrodzki/next-firebase-auth-edge/compare/main...Onxi95:next-firebase-auth-edge:main
To Reproduce
examples/next-typescript-minimal
.env
with the necessary firebase credentialsrefreshServerCookies
ignore cookie settings, while middleware refresh works as expectedhttps://github.com/user-attachments/assets/3d09eb44-1548-4bf6-9bba-5816417af905
As you can see in the video, cookie settings are ignored by
refreshServerCookies
Version
:mag_right: Hypothesis
It looks like the parameters for setting cookies are missing in this part.
I'm not sure if it's the only place, though. :thinking: If there's anything I can help you with, let me know!