docs: def check_token(self, token: 'RedisEphemeralTokens') -> bool:
          """
          Check that a token is correct for a given scope token.
          """
          if self.get_state() is None:  # Token expired
              return False
  
          correct_token = self.make_token(self)
          self.clear()
          return constant_time_compare(correct_token, token)