logto-io / js

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

fix: use route to handle callback in next server actions #616

Closed wangsijie closed 9 months ago

wangsijie commented 9 months ago

Summary

In Next.js server actions sample:

Use route handler to handle sign in callback, the prev page handler can not get search params in Vercel, because it is a client component.

Testing

Tested in Vercel.

Checklist