oauth2_client/models.py
def is_expired(self):
        """
        The token is expired when 1) expiration info available AND 2) expiration datetime is in the past.
        TIMEOUT_SECONDS margin is used to prevent token expiration issues during long-running
        requests.
        Apart from `expired`, the token could be `valid` or `unknown` (no expiration info available)

        Returns:
            bool: is token expired
        """
        if self.expires and timezone.now() >= self.expires - timedelta(seconds=self.TIMEOUT_SECONDS):
            return True
        return False

        The token is expired when 1) expiration info available AND 2) expiration datetime is in the past.
        TIMEOUT_SECONDS margin is used to prevent token expiration issues during long-running
        requests.
        Apart from `expired`, the token could be `valid` or `unknown` (no expiration info available)

        Returns:
            bool: is token expired
        
The token is expired when 1) expiration info available AND 2) expiration datetime is in the past.
TIMEOUT_SECONDS margin is used to prevent token expiration issues during long-running
requests.
The token is expired when 1 ) expiration info available AND 2 ) expiration datetime is in the past . TIMEOUT_SECONDS margin is used to prevent token expiration issues during long - running requests .
def is_expired(self):
        if self.expires and timezone.now() >= self.expires - timedelta(seconds=self.TIMEOUT_SECONDS):
            return True
        return False
def is_expired ( self ) : if self . expires and timezone . now ( ) >= self . expires - timedelta ( seconds = self . TIMEOUT_SECONDS ) : return True return False
The token is expired when 1) expiration info available AND 2) expiration datetime is in the past.
The token is expired when 1 ) expiration info available AND 2 ) expiration datetime is in the past .
"""
        The token is expired when 1) expiration info available AND 2) expiration datetime is in the past.
        TIMEOUT_SECONDS margin is used to prevent token expiration issues during long-running
        requests.
        Apart from `expired`, the token could be `valid` or `unknown` (no expiration info available)

        Returns:
            bool: is token expired
        """
None
bool
self