(self)
return {
            'expired': self.credentials.credential.expired,
            'expiry_time': self.credentials.credential.expiry.isoformat(),
        }
Return a dict with OAuth token status, if one exists.
Return a dict with OAuth token status, if one exists.
Return a dict with OAuth token status if one exists .
def get_oauth_token_status(self):
        """Return a dict with OAuth token status, if one exists."""
        if not self.credentials:
            return {
                'status': 'No stored credentials.'}
        return {
            'expired': self.credentials.credential.expired,
            'expiry_time': self.credentials.credential.expiry.isoformat(),
        }
def get_oauth_token_status ( self ) : if not self . credentials : return { 'status' : 'No stored credentials.' } return { 'expired' : self . credentials . credential . expired , 'expiry_time' : self . credentials . credential . expiry . isoformat ( ) , }