Socket.io Auth JWT
Socket.IO authentication middleware using JSON Web Token
Installation
The Socket.io Auth JWT can be installed with NPM. Run this command:
npm i socket.io-auth-jwt
Using
Server side:
io;
Note: Only secret parametar is required. By default error_details:
false
and error_event is 'unauthorized
'
Client side:
var your_jwt_token = "xxxxx.xxxx.xxxx";var socket = ; socket;
License
Please see the license file for more information.