passport
passport copied to clipboard
What is the idea of having passReqToCallback on AuthenticateOptions type assigned to passport.authenticate options parameter?
It is misleading as it can be thought that passReqToCallback can be passed through passport.authenticate options parameter, but in reality it can't be. Suggestion is to remove passReqToCallback so that it won't be suggested on passport.authenticate options param.
Are you referring to TypeScript types? If so, those are maintained externally to this library. I'd recommend filing an issue with the project that maintains the types.