Skip to content

Commit c2633e2

Browse files
committed
* Stacktrace in onLoginFailed is now non-nullable
1 parent 6d509d3 commit c2633e2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/auth_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class FirebasePhoneAuthController extends ChangeNotifier {
180180
}
181181

182182
verificationFailedCallback(FirebaseAuthException authException) {
183-
_onLoginFailed?.call(authException, null);
183+
_onLoginFailed?.call(authException, StackTrace.current);
184184
}
185185

186186
codeSentCallback(

lib/src/type_definitions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ typedef OnLoginSuccess = FutureOr<void> Function(UserCredential, bool);
66

77
typedef OnLoginFailed = FutureOr<void> Function(
88
FirebaseAuthException,
9-
StackTrace?,
9+
StackTrace,
1010
);
1111

1212
typedef OnError = FutureOr<void> Function(

0 commit comments

Comments
 (0)