You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, my passport strategy depended on an older version of passport-oauth, which in turn depended on a version of passport prior to 0.5.1. In 0.5.1, passport was updated to move where the passport session is kept (no longer at req._passport.session). The older version of passport was expecting to find it there. Here are a couple things you can check to track down your issue.
Edit from the future:
This repo seems dead. For everyone with the same issue and you need passport >5.1, you can use a custom Passport OAuth2Strategy. Here's the config that I use:
Newer passport versions give this error:
TypeError: Cannot set properties of undefined (setting 'user')
This stack overflow post describes the issue pretty well: https://stackoverflow.com/questions/72916291/passport-fail-to-serializeuser-typeerror-cannot-set-properties-of-undefined-s
Edit from the future:
This repo seems dead. For everyone with the same issue and you need passport >5.1, you can use a custom Passport OAuth2Strategy. Here's the config that I use:
and then in your routers
Hopefully this helps someone
The text was updated successfully, but these errors were encountered: