Previously, I faced a MAU rate limit error and upgraded my plan to resolve this issue.
However, I would like to implement MAU rate limit error handling for the future.
I don’t know what errors are returned when the count of Monthy Active Users is larger than contract one.
Is it possible that the error message is You have reached the global limit for your account?
Can you share the existing code that is causing the error? Also, to be clear, you are calling the management API and getting a rate limit error? I ask because the management API is very limited for use with SPAs, and hitting the rate limit suggests something unintended is causing the increase in request volume.
Otherwise, it sounds like you just need information on how to handle any HTTP error in react.
As long as the error is being returned in the useAuth0 hook, the state of the hook should include an error and you can render a component/element. There is an example in our demo. You can see it in action here: