title: Laravel Echo not using Auth Headers
body: <p>I update the header like this:</p>
  
  <pre><code>window.setAuthToken = (token) =&gt; {
      window.Echo.options.auth.headers.Authorization = 'Bearer ' + token;
  }
  </code></pre>
  
  <p>The token is set in the Laravel Echo Headers, as seen here:
  <a href="https://i.stack.imgur.com/Qrjjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qrjjd.png" alt="Console result"></a></p>
  
  <p>But it is <strong>not used</strong>, as seen here:
  <a href="https://i.stack.imgur.com/L1wm5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L1wm5.png" alt="Headers"></a></p>
  
  <blockquote>
    <p>Why is Laravel Echo not using Auth Headers?</p>
  </blockquote>
  
  <p><strong>Edit:</strong>
  I also tried dynamically update the endpoint like <code>window.Echo.connector.options.authEndpoint = '';</code>, and it is set in the options but not used by the request.</p>
  
  <p>This is how I connect to the channel. </p>
  
  <pre><code>Echo.private('app.User.' + data.user_id)
      .notification((notification) =&gt; {
          dispatch('handle', notification);
      });
  </code></pre>