test repo for passport.js with jwt strategy
- This project is an attempt to extend the examples found in the official repo as well as various tutorials to include both http and socket.io passport authentication as well as address the JWT client-side storage location.
Official socket.io passport examples: https://github.com/socketio/socket.io/blob/master/examples/passport-example/index.js
- the main branch includes all of the work of the feature branches. To see individual features, checkout the branches below:
https://github.com/NylonEric/passport-jwt-example/tree/http-passport-auth
https://github.com/NylonEric/passport-jwt-example/tree/socket-strategy
https://github.com/NylonEric/passport-jwt-example/tree/socket-jwt-auth
https://github.com/NylonEric/passport-jwt-example/tree/local-storage
socket.io socket.io middleware: https://socket.io/docs/v4/middlewares/