def GetGoogleSqlOAuth2RefreshToken(oauth_file_path):
 if (not os.path.exists(oauth_file_path)):
  return None
 try:
  with open(oauth_file_path) as oauth_file:
   token = simplejson.load(oauth_file)
   return token['refresh_token']
 except (IOError, KeyError, simplejson.decoder.JSONDecodeError):
  logging.exception('Could not read OAuth2.0 token from %s', oauth_file_path)
  return None

def GetGoogleSqlOAuth2RefreshToken ( oauth_file_path ) : if ( not os . path . exists ( oauth_file_path ) ) : return None try : with open ( oauth_file_path ) as oauth_file : token = simplejson . load ( oauth_file ) return token [ 'refresh_token' ] except ( IOError , KeyError , simplejson . decoder . JSONDecodeError ) : logging . exception ( 'Could not read OAuth2.0 token from %s' , oauth_file_path ) return None
reads the users google cloud sql oauth2 .