logto-io / js

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

refactor(next): use cookie storage #783

Closed wangsijie closed 2 months ago

wangsijie commented 3 months ago

Summary

Refactor Next.js SDK to use CookieStorage, so that we can handle cookie size problems in the future, and also keep the code clean.

Testing

Local tested with 2 sample projects, both App Router and Pages Router work as expected.

Checklist