passport icon indicating copy to clipboard operation
passport copied to clipboard

What is the idea of having passReqToCallback on AuthenticateOptions type assigned to passport.authenticate options parameter?

Open rezicosta opened this issue 3 years ago • 1 comments

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.

rezicosta avatar Oct 29 '22 15:10 rezicosta

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.

jaredhanson avatar Oct 29 '22 18:10 jaredhanson