2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

minor. closes #43

This commit is contained in:
José F. Romaniello 2015-05-29 09:49:24 -03:00
parent 276e7aa514
commit c6feb807d8

View File

@ -19,7 +19,7 @@ io.sockets
})).on('authenticated', function(socket) {
//this socket is authenticated, we are good to handle more events from it.
console.log('hello! ' + socket.decoded_token.name);
}));
});
```
**Note:** If you are using a base64-encoded secret (e.g. your Auth0 secret key), you need to convert it to a Buffer: `Buffer('your secret key', 'base64')`