Closed JiCiT closed 2 years ago
This use case can be accomplished now by passing strategy instances to passport.authenticate()
, as described here: https://medium.com/passportjs/authenticate-using-strategy-instances-49e58d96ec8c
This approach avoids the need for each protocol-specific strategy to implement the types of changes proposed here. Closing.
I had a need to be able to configure for multiple clients, but which client isn't known until the point that authenticate is called. These changes let you pass those options to authenticate just like you do to the constructor.