isAuthorized method

Future<Result<bool, Exception>> isAuthorized()

Implementation

Future<Result<bool, Exception>> isAuthorized() async {
  final result = await _flutterAuthApi.isAuthorized(_appName);

  if (result.isSuccess != true) {
    return Result.failure(Exception(result.error));
  }

  return Result.success(result.isAuthorized == true);
}