getValorAccessToken method

  1. @override
Future<Either<Failure, String>> getValorAccessToken()
override

Implementation

@override
Future<Either<Failure, String>> getValorAccessToken() async {
  try {
    var result = _sharedPref.getString(localKeyValorToken);
    return Right(result ?? "");
  } catch (e) {
    return Left(CacheFailure());
  }
}