loginWithCode method
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"));
}
}