-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug when resetting session where cookie is an object #49
Comments
Likely, somewhere in the code, the session object is being set to something that isn't a Likely somewhere, this is happening: |
We could do some things to try to handle this better:
|
Thanks a lot for your prompt response. I actually was using connect's built-in session along with client-sessions because I needed it with Passport.js. that was the problem. Unfortunately I had to stop using client-sessions to handle OpenId sign up and sign in. Cheers |
Hi
I am using Passport.js and Google Auth along with node-client-sessions to handle users' session. Everything is working quite well but when I try to reset the session, I get the error:
TypeError: Object { uid: 'AItOawmNEye27rYg8ginQ5vgZG8Gfd1sjvCqr_o',
ref: 'str',
_id: 51c924289782944904000001 } has no method 'reset']
In my cookie, I am storing the user if and a string called 'ref'. Any idea where it might come from and how to fix it ?
Cheers
The text was updated successfully, but these errors were encountered: