Open Dakuan opened 5 days ago
@wangsijie Do you think the await is necessary? Are cookies async?
yes
[Error: Route "/" used `cookies().get('logto:jwtsdep1memhjojskp0fk')`. `cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
terminal looks like this in next 15 π
Next.js maintainer & logto (personal) user here. This is the change in next@15
See https://nextjs.org/docs/app/building-your-application/upgrading/version-15#async-request-apis-breaking-change for more details.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
@logto/next@3.7.1
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.