You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void login(String code, RunMutation runMutation) async {
final PhoneAuthCredential credential = PhoneAuthProvider.credential(
verificationId: widget.verificationId, smsCode: code);
final UserCredential cr =
await FirebaseAuth.instance.signInWithCredential(credential);
final String firebaseToken = await cr.user!.getIdToken();
final QueryResult qe =
await runMutation({"firebaseToken": firebaseToken}).networkResult!;
final String jwt = Login$Mutation.fromJson(qe.data!).login.jwtToken;
final Box box = await Hive.openBox('user');
box.put("jwt", jwt);
context.read().login(jwt);
if (!mounted) return;
Navigator.pop(context);
}
The text was updated successfully, but these errors were encountered:
waleed099
changed the title
How Solve Unhandled Exception: Null check operator used on a null value E/flutter (14787): #0 _LoginVerificationCodeViewState.login
How Solved Unhandled Exception: Null check operator used on a null value E/flutter (14787): #0 _LoginVerificationCodeViewState.login
Jul 21, 2022
waleed099
changed the title
How Solved Unhandled Exception: Null check operator used on a null value E/flutter (14787): #0 _LoginVerificationCodeViewState.login
How Solved Unhandled Exception: Null check operator used on a null value E/flutter
Jul 21, 2022
waleed099
changed the title
How Solved Unhandled Exception: Null check operator used on a null value E/flutter
Unhandled Exception: Null check operator used on a null value E/flutter
Jul 21, 2022
void login(String code, RunMutation runMutation) async {
final PhoneAuthCredential credential = PhoneAuthProvider.credential(
verificationId: widget.verificationId, smsCode: code);
final UserCredential cr =
await FirebaseAuth.instance.signInWithCredential(credential);
final String firebaseToken = await cr.user!.getIdToken();
final QueryResult qe =
await runMutation({"firebaseToken": firebaseToken}).networkResult!;
final String jwt = Login$Mutation.fromJson(qe.data!).login.jwtToken;
final Box box = await Hive.openBox('user');
box.put("jwt", jwt);
context.read().login(jwt);
if (!mounted) return;
Navigator.pop(context);
}
The text was updated successfully, but these errors were encountered: