logto-io / js

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

feat(next): add error handlers to all methods #772

Closed wangsijie closed 2 months ago

wangsijie commented 2 months ago

Summary

For Next.js App router, add an optional parameter "onError" to all methods.

Testing

Existing tests should pass, local tested.

Checklist