File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ This guide uses the [`express`](https://www.npmjs.com/package/express) HTTP
21
21
framework and supporting Node packages authored and maintained by Auth0:
22
22
23
23
- [ ` express-jwt ` ] ( https://github.com/auth0/express-jwt ) - _ Middleware that
24
- validates a JWT and copies its contents to ` req.user ` _
24
+ validates a JWT and copies its contents to ` req.auth ` _
25
25
- [ ` jwks-rsa ` ] ( https://github.com/auth0/node-jwks-rsa ) - _ A library to retrieve
26
26
RSA public keys from a JWKS (JSON Web Key Set) endpoint_
27
27
@@ -144,8 +144,8 @@ app.use(
144
144
postgraphile(process.env.DATABASE_URL, process.env.DB_SCHEMA, {
145
145
pgSettings: req => {
146
146
const settings = {};
147
- if (req.user ) {
148
- settings["user.permissions"] = req.user .scopes;
147
+ if (req.auth ) {
148
+ settings["user.permissions"] = req.auth .scopes;
149
149
}
150
150
return settings;
151
151
},
You can’t perform that action at this time.
0 commit comments