code: def extended(self):
          
          if self.expires_at:
              return self.expires_at - self.issued_at > timedelta(days=30)
          else:
              return False
docs: Determine whether the OAuth token has been extended.