loginWithCode method

Future loginWithCode(
  1. {required String email,
  2. required String token}
)

Implementation

Future loginWithCode({
  required String email,
  required String token,
}) async {
  setBusy(true);
  try {
    await _authenticationService.signInWithCode(email, token);
    setBusy(false);
  } catch (e) {
    setBusy(false);
    await _dialogService.showDialog(BasicDialog(
        title: "Login error",
        description:
            "Authentication failed, please double check your token from the email"));
  }
}