onAPIError does not get called?

Hey, I've been trying to get better-auth to throw an APIError from the handler or at least a way to customize the response but it seems like that onAPIError is broken? It does not get called when an error happens on better-auth
Was this page helpful?