Cannot set property 'remote_auth_s3' of undefined, when trying to implement Disqus SSO with PHP/Laravel
<p>I am trying to implement Disqus Single Sign On on my site. I have been following the docs of Disqus and added all the code as described. When trying to test the SSO I get the following error:</p>

<pre><code>    Uncaught TypeError: Cannot set property 'remote_auth_s3' of undefined
</code></pre>

<p>Which comes from the following JS:</p>

<pre><code> &lt;script&gt;
  // The generated payload which should authenticate users with Disqus
     this.page.remote_auth_s3 = '{{$disqus_load}}';
     this.page.api_key = "{{env('DISQUS_PUBLIC_KEY')}}";

 &lt;/script&gt;
</code></pre>

<p>The payload and keys are correct and tested using the Disqus api tester.</p>

<p>The javascript comes straight out of the Disqus documentation and should work. 
How can I get this to work? </p>