无法设置未定义的属性“remote_auth_s3”,当尝试使用 PHP/Laravel 实现 Disqus SSO 时


Cannot set property 'remote_auth_s3' of undefined, when trying to implement Disqus SSO with PHP/Laravel

我正在尝试在我的网站上实现Disqus单点登录。我一直在关注Disqus的文档,并按照描述添加了所有代码。尝试测试 SSO 时,出现以下错误:

    Uncaught TypeError: Cannot set property 'remote_auth_s3' of undefined

它来自以下JS:

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

有效负载和密钥是正确的,并使用Disqus api测试器进行测试。

javascript直接来自Disqus文档,应该可以工作。我怎样才能让它工作?

我已经通过将这些变量放入

    var disqus_config = function () {

错误现在已经消失了,但它还没有工作。