title: Pusher, Different auth for presence and private?
body: <p>I'm wondering how to implement the Authorisation for both the Private and Presence channel, <strong>since the documentation states that the auth is different for the two.</strong></p>
  
  <p><a href="https://pusher.com/docs/authenticating_users#implementing_private_endpoints" rel="nofollow">https://pusher.com/docs/authenticating_users#implementing_private_endpoints</a></p>
  
  <p>My current auth process in Laravel is this</p>
  
  <pre><code>public function auth(PusherManager $pusher, Request $request)
  {
      if(Auth::check())
      {
          echo $pusher-&gt;presence_auth('presence-channel', $request-&gt;get('socket_id'), Auth::user()-&gt;id, Auth::user());
      }
  }
  </code></pre>
  
  <p>And I'm initialising the channels as follows</p>
  
  <pre><code>var pusher = new Pusher('7c1df2e41d3c474d369d');
  var presenceChannel = pusher.subscribe('presence-channel');
  var notificationChannel = pusher.subscribe('private-notifications-' + me.id);
  </code></pre>
  
  <blockquote>
    <p><strong>This is working for the Presence-channel, But when it comes to the Private-notifications channel I get the following error.</strong></p>
    
    <p>Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":null,"message":"Invalid signature: Expected HMAC SHA256 hex digest of 52336.206126:private-notifications:{\"user_id\":1,\"user_info\":{\"id\":1,\"name\":\"Miguel Stevens\",\"email\":\"miguel@clouddesign.be\",\"created_at\":\"2015-08-04 20:45:41\",\"updated_at\":\"2015-08-04 20:45:41\"}}, but got c880aa8f9d1337e4972fde05ae76148cd9a2a91e636d4714efbac2dff6d27f4b"}}}</p>
  </blockquote>