Skip to content

Commit cb0d808

Browse files
authored
Merge branch 'master' into master
2 parents 1975e10 + e056e51 commit cb0d808

File tree

3 files changed

+58
-68
lines changed

3 files changed

+58
-68
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare namespace JwksRsa {
7373
/** Types from express-jwt@>=7 */
7474
type GetVerificationKey = (req: unknown, token: Jwt | undefined) => Secret | undefined | Promise<Secret | undefined>;
7575

76-
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong|GetVerificationKey;
76+
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong & GetVerificationKey;
7777

7878
function passportJwtSecret(options: ExpressJwtOptions): SecretCallback;
7979

package-lock.json

Lines changed: 56 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function retrieveSigningKeys(jwks) {
4343

4444
for (const jwk of jwks) {
4545
try {
46-
const key = await jose.importJWK(jwk, resolveAlg(jwk));
46+
const key = await jose.importJWK({ ...jwk, ext: true }, resolveAlg(jwk));
4747
if (key.type !== 'public') {
4848
continue;
4949
}

0 commit comments

Comments
 (0)