logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
67 stars 40 forks source link

fix(next): set cookie samesite when the config is secure #662

Closed wangsijie closed 8 months ago

wangsijie commented 8 months ago

Summary

In Next.js SDK, if cookie secure config is set to true, will add "SameSite=Lax".

There is "CookieStorage" in this project, but it turned out to be not easy to refactor. Created an issue to track, will refactor later.

Testing

Local tested.

Checklist