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