Open francisdb opened 2 years ago
express-jwt 7.x changed the default property from req.user to req.auth I guess this library could also by default start using that property? (major release)
express-jwt
7.x
req.user
req.auth
see https://github.com/auth0/express-jwt#migration-from-v6
workaround for now is to set up the library with
import ejp from 'express-jwt-permissions' const guard = ejp({ requestProperty: 'auth' })
@francisdb - thank you so much. This workaround was successful for me.
express-jwt
7.x
changed the default property fromreq.user
toreq.auth
I guess this library could also by default start using that property? (major release)see https://github.com/auth0/express-jwt#migration-from-v6
workaround for now is to set up the library with