-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types conflict between jwks-rsa's @types/express-jwt@0 and express-jwt@7.5.0 #299
Comments
Oh uh! Just updated express-jwt and here I am. 😞 Any workaround? |
This package probably need supdating: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-jwt |
No, As a matter of fact, the root cause of your issues is because the types are overriden by those provided by express-jwt. |
#301 should fix this one |
Describe the problem
Using
express-jwt@7.5.0
, with included types definitions, the types as linked byjwks-rsa@2.1.0
are ignored.express-jwt@7
removed two types which are used injwks-rsa@2
's type definitions, thus leading to transpilation errors.What was the expected behavior?
TS Code using
express-jwt@7
&jwks-rsa@2
should transpile without errorsReproduction
I did a small proof of concept for the transpilation issue, based on the example code for using multiple jwt providers.
Environment
The text was updated successfully, but these errors were encountered: