Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
No way to share token between socket-rest-express #607
Steps to reproduce
--> So question is : How can i authenticate users via socketIO and then access express mount point without auth again ?
server-side (just the express mount point, because all auth mechanism and services access with sockets works great)
Client side (once user is authenticated via socketIO)
Once user is authenticated, authentication should work (with cookie or other means) either with sockets or rest or express
Once authenticated via socketIO, i can see the token in localStorage. But no cookie is set.
My actual work around is (potentially security hole) :
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
Operating System: macos high sierra
Browser Version: Safari 11
This was referenced
Jan 19, 2018
There is now a recipe showing how to use Feathers authentication with Express middleware (including server side rendering) at https://docs.feathersjs.com/guides/auth/recipe.express-middleware.html