条件「isauthenticated」が「true」の場合にボタンを表示しようとしています。
これを参照として使用しましたが、私のコードの何が問題なのかわかりません。
<button id="authentic" type="hidden">test</button>
<script>
    window.onload = function() { 
        var logedIn = ('{{isauthenticated}}')
        if(logedIn == "true") {
            document.getElementById('authentic').style.display = 'block'; 
        } else {
            document.getElementById('authentic').style.display = 'none';
        }
    }
</script>