jsi

jwt-socket.io

This is my first npm package, just to test it

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

jwt-socket.io

This is my first npm package, just to test how to upload npm packages

A small library for authentication with a user, JWT and socket.io

Installation

npm install jwt-socket.io

It is required to have a folder config/ with index.json in the root of the project

{
  "dbUri": "databaseURI",
  "jwtSecret": "secretkey"
}

the package is assuming you are using mongoose with a user table

I will change all of this later to make it dynamic and flexible

Usage

const io = require('socket.io')(server)
const ioAuthCheck = require('io-auth-check')
io.use(ioAuthCheck)

Tests

They are not available now

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100