def METHOD_NAME(cls, token, expected_data):
    """Validate a secret link token.
    Only queries the database if token is valid to determine that the token
    has not been revoked.
    """
    data = cls.load_token(token, expected_data=expected_data)
    if data:
        link = cls.query.get(data["id"])
        if link and not link.is_expired:
            return True
    return False