Closed Tenshock closed 5 years ago
@Tenshock thank you for bringing this up. Apparently we missed this when bundling the types with 3.7.0. I just released 3.7.2 which fixes the issue 🤞
I'm always impressed by your quick answer and patches, thank you a lot.
Describe the bug When I instanciate a new Strategy object in Typescript and I use this object in passport.use(), it raises an error from the typescript transpiler on the
new Strategy
line as follows:To Reproduce Issuer and Client configuration:
Steps to reproduce the behaviour:
tsc
Expected behaviour I don't know what it should do but I was using the exact same code in openid-client@3.3.0 and since I updated the package to 3.7.1 I have this error. When I override the typescript definition of the openid-client Strategy with an
authenticate
attribute, it works as expected. I don't know if it is really a bug or if I misunderstood something.I think it's not relevant to show the code that calls this class to instanciate the Strategy and the parameters, as the bug is not related to a particular behaviour after it is executed, as it does not compile.
Environment:
Additional context