code: def check_token(self, renew=True):
          
          if not self.access_token:
              raise AttributeError('Access Token Required to Check Token')
          now = datetime.datetime.now()
          dec_access_token = jwt.get_unverified_claims(self.access_token)
  
          if now > datetime.datetime.fromtimestamp(dec_access_token['exp']):
              expired = True
              if renew:
                  self.renew_access_token()
          else:
              expired = False
          return expired
docs: Checks the exp attribute of the access_token and either refreshes
          the tokens by calling the renew_access_tokens method or does nothing
          :param renew: bool indicating whether to refresh on expiration
          :return: bool indicating whether access_token has expired