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
app.get('token') doesn't work after a browser refresh. #303
On the client, I am storing my authentication token to local storage and using websockets on the client to connect. If I use app.get('token') it works fine until I refresh the browser then it returns undefined. If I get the jwt token directly with localStorage.getItem() it works fine even after a browser refresh.
Is this a bug or do I not have a proper understanding of how app.get('token') should work?
Ok I understand that you can't really know if a token is valid or not until you run
I would think