onAPIError not working
Hello,
When i use onAPIError in the auth config and try to log the error there is no logs in the console.
Is there a way to use it ? I followed the docs
11 Replies
can u pls share how you actually configured it
Yes sure, like in the docs:
can u toggle the throw to false .. ig it is been throwing an error before it is catching and logging it
Same issue
I try with auth.api.checkOrganizationSlug with an existing slug to get an error
It don’t work
But I get the ApiError in the console like before
Seem the onAPIError is not reached
Will you fix this issue in next release ?
yeah yeah def.
@bekacru sorry for the ping, should be great when onAPIError is fixed that we can transform the error like rebuild it and than rethrow it
will do!
Hey, do you have an idea on when this will be looked at?
hey, this is pretty important to work..
@bekacru is this getting fixed in 1.2.8?
I'll take a look. This should have been fixed
but curious what's your use case?
we've migrated from nhost and hasura and now in prod with better-auth, and we need custom pages for UX instead of the stock better-auth ones.
Currently, the errorURL doesn't work, not for OAuth callback and also not when throwing in model hooks.