auth0 / express-jwt

connect/express middleware that validates a JsonWebToken (JWT) and set the req.user with the attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong typing for algorithms

fsanzv opened this issue · comments

Description

If you do not provide ´algorithms´ option you get an exception in run time.

I know this is in the doc: https://github.com/auth0/express-jwt#required-parameters but the typings used for ´algorithms´ option comes from jsonwebtoken package and there the ´algorithms´ is defined as optional.

I think this typing should be overridden in jwt to avoid confusion.

good catch! fixed in v7.6.2