handleError method
Called when an exception relating to authentication gets thrown. Can be overriden to provide your own custom logic (e.g. logging, custome snackbar, etc.)
Implementation
void handleError(BuildContext context, AuthException exception) {
// ignore: avoid_print
print(
'Tried performing ${exception.action} and received an exception: $exception');
}