logto-io / js

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

feat(next): add error handler to withLogtoApiRoute #661

Closed wangsijie closed 6 months ago

wangsijie commented 6 months ago

Summary

Add error handler to withLogtoApiRoute, this is useful when developers need to handle the auth failed case.

Testing

Unit tests.

Checklist