def METHOD_NAME(token: str, secret: str) -> str:
    """Generate an HMAC that signs the CSRF token.
    Args:
        token: A hashed token.
        secret: A secret value.
    Returns:
        A CSRF hash.
    """
    return hmac.new(secret.encode(), token.encode(), hashlib.sha256).hexdigest()