Method to be called when the auth action threw an excepction
final void Function(Object error)? onError;