Closed wangsijie closed 1 year ago
implement it on our own
Do we need to draft a changeset? Do we need to update next sample project?
@charIeszhao I think the answer is no, because this is a refactor, the usage stays the same.
@charIeszhao I think the answer is no, because this is a refactor, the usage stays the same.
OK, I'm good.
Summary
Remove "iron session" dependency in Next.js SDK, replaced with our own implementation of cookie-based session.
The reason is that, "iron session" depends on
Request
andResponse
, which is not available in Next.js's Server Actions. Next, we'll add support for Server Actions.Testing
Pass existing tests, and tested locally with real Logto endpoint.
Checklist
.changeset