registerHandler method
- ErrorHandler handler
Register a callback which can handle errors.
The callback can answer with an updated request that can resolve the authentication error.
If the callback can't handle the error, then it should return null. The
authenticator will then try using the next registered handler to try to
fix the authentication issue.
Implementation
bool registerHandler(ErrorHandler handler) {
return _handlers.add(handler);
}