I’m building a register system where a user can login with Facebook, Google, or locally.
Whenever I post via any login strategy I get uknown strategy error. I think I did connect all files all together. I did check every solution, on stackoverflow, but can’t find anything that could help aht the moment.
My code: https://github.com/ExadelPraktika/Back-exabook/tree/backend_full
Advertisement
Answer
added require(‘../passport’); in passport.js it works