Closed wangsijie closed 2 months ago
Refactor Next.js SDK to use CookieStorage, so that we can handle cookie size problems in the future, and also keep the code clean.
CookieStorage
isSecure
NextStorage
Local tested with 2 sample projects, both App Router and Pages Router work as expected.
.changeset
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.CookieStorage
class, addisSecure
config to replace "request" parameter, because the cookie secure condition may differ in different environment.NextStorage
because it is no longer been used.Testing
Local tested with 2 sample projects, both App Router and Pages Router work as expected.
Checklist
.changeset