Called when sign-in fails.
Provides the AuthError containing error details.
final void Function(AuthError error)? onError;