Skip to content
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

Passport needs to be v0.5.2 (not v6) for this to work in your own app #157

Open
maxforbang opened this issue Feb 16, 2023 · 1 comment
Open

Comments

@maxforbang
Copy link

If you're getting the error req.session.regenerate is not a function when you try to follow the guide in implementing this in your own app, it's because your passport needs to be downgraded to v0.5.2, as 6.0 is a breaking change for the compatibility with next-session.

Source: jaredhanson/passport#907

@maxforbang
Copy link
Author

New to the Git community - Didn't know how to leave a discussion without creating a bug - but I thought that this ought to be reported.

Spent a good 6 hours trying to figure out what was wrong :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant