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

Upgrade the use of the major version express-unless v1.0.0

pipeline1987 opened this issue · comments

Describe the problem you'd like to have solved

The compatible version of the express-unless library used right now in express-jwt, doesn't contain the new feature implemented in express-unless v1.0.0, that can pass through the custom property, an async function made for expect for a promise executed.

Describe the ideal solution

Upgrade the use of the major version express-unless v1.0.0.

Alternatives and current work-arounds

N/A.

Additional context

With this change, it would be available to pass through the custom function for example, a result from any DB that indicates if should apply the middleware or some response from another service made on an async function.

Resolved