mikemintz / rethinkdb-websocket-server

Node.js WebSocket server that proxies to RethinkDB. Supports query validation.
MIT License
156 stars 22 forks source link

Pass request object along with urlQueryParams #27

Open Goblinlordx opened 7 years ago

Goblinlordx commented 7 years ago

urlQueryParams seems extremely dependent on authentication with the same server. If I want to authenticate via another server (to include third-party) and then have a JWT for example, I need access to the request headers. Passing the request object as a second parameter would allow this and then the JWT could be authenticated.