anchor.diff:            Provider.of<UserDataProvider>(context, listen: false).isLoggedIn;
         var validToken = false;
   
  -      print('Native Scanner Submission Testing');
  -      print('-----------------------------------');
  -      print('isLoggedIn: ' + isLoggedIn.toString());
  -      print('accessToken: ' + accessToken.toString());
  -      print('accessTokenExpiration: ' + accessTokenExpiration.toString());
  -      print('nowTime: ' + nowTime.toString());
  -      print('Token expired: ' + tokenExpired.toString());
  -      print('Token expires in ' + timeDiff.toString() + 's');
  -
         if (isLoggedIn) {
  -        print('Scan Submission: isLoggedIn=true');
           if (tokenExpired) {
  -          print('Scan Submission: tokenExpired=true');
             if (await _userDataProvider.silentLogin()) {
  -            print('Scan Submission: refreshToken success');
  -            var newAccessToken =
  -                _userDataProvider?.authenticationModel?.accessToken;
  -            print('newAccessToken: ' + newAccessToken);
               validToken = true;
  -          } else {
  -            print('Scan Submission: refreshToken failed.');
             }
           } else {
  -          print('Scan Submission: tokenExpired=false');
             validToken = true;
           }
   
           if (validToken) {
  -          print('validToken: true, POSTing to ScanData V2...');
             var results = await _barcodeService.uploadResults({
               "Content-Type": "application/json",
               'Authorization':
  
positive.code:             }
            }
          } else {
            print('validToken: false, error');
            this.setState(() {
              successfulSubmission = false;
              didError = true;
  
negative.code:     try {
        var accessTokenExpiration =
            _userDataProvider?.authenticationModel?.expiration;
        var nowTime = (DateTime.now().millisecondsSinceEpoch / 1000).round();
        var timeDiff = accessTokenExpiration - nowTime;
        var tokenExpired = timeDiff <= 0 ? true : false;
  