flask_oauthlib/contrib/oauth2.py
def get(self, access_token=None, refresh_token=None):
        """returns a Token object with the given access token or refresh token

        :param access_token: User's access token
        :param refresh_token: User's refresh token
        """
        if access_token:
            return self.query.filter_by(access_token=access_token).first()
        elif refresh_token:
            return self.query.filter_by(refresh_token=refresh_token).first()
        return None
def get(self, access_token=None, refresh_token=None):
        if access_token:
            return self.query.filter_by(access_token=access_token).first()
        elif refresh_token:
            return self.query.filter_by(refresh_token=refresh_token).first()
        return None
def get ( self , access_token = None , refresh_token = None ) : if access_token : return self . query . filter_by ( access_token = access_token ) . first ( ) elif refresh_token : return self . query . filter_by ( refresh_token = refresh_token ) . first ( ) return None
returns a Token object with the given access token or refresh token

        :param access_token: User's access token
        :param refresh_token: User's refresh token
returns a Token object with the given access token or refresh token