How to return error from Auth0 hooks