logto-io / js

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

feat(next): add built-in helpers #637

Closed wangsijie closed 7 months ago

wangsijie commented 7 months ago

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