loginWithCode method
Implementation
@override
Future<Either<AuthServiceSignInFailure, LoginCodeResponse>> loginWithCode(String code) async {
try {
var result = await authCallable.call(LoginCodeRequest(loginCode: code).toJson());
return right(LoginCodeResponse.fromJson(result.data));
} catch (e) {
loge(e);
return left(AuthServiceSignInFailure.wrongPassword);
}
}