onAPIError not working - Better Auth