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

Update README.md

Added a note about converting base64 secret keys to Node Buffers.
This commit is contained in:
Mark Rendle 2014-04-30 01:27:43 +01:00
parent 0577d07b47
commit e6ea64dc33

View File

@ -20,6 +20,8 @@ io.sockets
})); }));
``` ```
**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')`
__Client side__: __Client side__:
```javascript ```javascript