{"action":"opened","issue":{"url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/168","repository_url":"https://api.github.com/repos/SocketCluster/socketcluster","labels_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/168/comments","events_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/168/events","html_url":"https://github.com/SocketCluster/socketcluster/issues/168","id":145787710,"number":168,"title":"Allow for base64 authKey","user":{"login":"mattkrick","id":5514175,"avatar_url":"https://avatars.githubusercontent.com/u/5514175?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkrick","html_url":"https://github.com/mattkrick","followers_url":"https://api.github.com/users/mattkrick/followers","following_url":"https://api.github.com/users/mattkrick/following{/other_user}","gists_url":"https://api.github.com/users/mattkrick/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkrick/subscriptions","organizations_url":"https://api.github.com/users/mattkrick/orgs","repos_url":"https://api.github.com/users/mattkrick/repos","events_url":"https://api.github.com/users/mattkrick/events{/privacy}","received_events_url":"https://api.github.com/users/mattkrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T19:57:13Z","updated_at":"2016-04-04T19:57:13Z","closed_at":null,"body":"auth0 provides a base64 encoded string. \r\nSo on the server, I pass it in as a buffer: `authKey: new Buffer(auth0Secret, 'base64'),`\r\nIf I don't pass it in as a buffer, i get the following client error: \r\n```\r\nindex.js:265 Uncaught (in promise) Error: invalid signature(…)module.e.hydrateError @ index.js:265SCTransport._onMessage @ sctransport.js:188wsSocket.onmessage @ sctransport.js:73\r\n```\r\n\r\nBy passing it in as a buffer, even though I don't see an error, I don't get authenticated. Here are the first 4 socket frames:\r\n\r\n```\r\n{\"event\":\"#handshake\",\"data\":{\"authToken\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3BhcmFib2wuYXV0aDAuY29tLyIsInN1YiI6ImF1dGgwfDU3MDE2ZWFlNGZjNWE3MWYxOTMwNWRjYSIsImF1ZCI6InczbUJyaGlYR3NFM0RzclNNZ3BBejJiUzZWekxoT3lKIiwiZXhwIjoxNDU5ODM0NTI0LCJpYXQiOjE0NTk3OTg1MjR9.mvo8cgvYbegiDrEL5lfqPYMwi1fu7ffU5e9fSwNTzEg\"},\"cid\":1}\r\n\r\n{\"rid\":1,\"data\":{\"id\":\"U1saFsggSWpfoU6-AAAM\",\"isAuthenticated\":false,\"pingTimeout\":20000}}\t\r\n\r\n{\"event\":\"#authenticate\",\"data\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3BhcmFib2wuYXV0aDAuY29tLyIsInN1YiI6ImF1dGgwfDU3MDE2ZWFlNGZjNWE3MWYxOTMwNWRjYSIsImF1ZCI6InczbUJyaGlYR3NFM0RzclNNZ3BBejJiUzZWekxoT3lKIiwiZXhwIjoxNDU5ODM0NTI0LCJpYXQiOjE0NTk3OTg1MjR9.mvo8cgvYbegiDrEL5lfqPYMwi1fu7ffU5e9fSwNTzEg\",\"cid\":2}\r\n\r\n{\"rid\":2,\"data\":{\"isAuthenticated\":false,\"authError\":null}}\r\n```"}}