Closed wangsijie closed 7 months ago
In @logto/next/server-actions: add built-in signIn, handleSignIn, singOut, getLogtoContext and other helpers.
@logto/next/server-actions
Use dynamic import of next/headers to resolve prev problems.
next/headers
Now users don't need to create a "libraries/logto.ts" file, they can use the exported functions directly.
Local tested in the new sample project.
.changeset
Summary
In
@logto/next/server-actions
: add built-in signIn, handleSignIn, singOut, getLogtoContext and other helpers.Use dynamic import of
next/headers
to resolve prev problems.Now users don't need to create a "libraries/logto.ts" file, they can use the exported functions directly.
Testing
Local tested in the new sample project.
Checklist
.changeset