Open airtonix opened 9 years ago
Hmm, I don't know why this would be. I'll try to reproduce.
Did you ever work around this?
Ah, I think my generated index.js file there is misleading. You can't extend that object from there. Just add those directly to sails.services.protocols
and that will work.
Hi,
I know I'm too late, but perhaps one way to extend it would be to require the local protocols in your extended passport.js myproject/api/services/protocols/passport protocols: require('./protocols')
. I'm still too early in my project and I don't know if that will really work but at least that give me all my custom protocols.
myproject/api/services/protocols/index
myproject/api/services/protocols/passport
results in: