File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
website/src/pages/docs/features Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const yoga = createYoga({
66
66
]
67
67
// Configure where to look for the JWT token: in the headers, or cookies.
68
68
// By default, the plugin will look for the token in the 'authorization' header only.
69
- lookupLocations : [
69
+ tokenLookupLocations : [
70
70
extractFromHeader ({ name: ' authorization' , prefix: ' Bearer' }),
71
71
],
72
72
// Configure your token issuers/audience/algorithms verification options.
@@ -79,7 +79,7 @@ const yoga = createYoga({
79
79
},
80
80
// Configure context injection after the token is verified.
81
81
// By default, the plugin will inject the token's payload into the context into the `jwt` field.
82
- // You can pass an object : `{ fieldName: "myJwt" } ` to change the field name.
82
+ // You can pass a string : `"myJwt"` to change the field name.
83
83
extendContext: true ,
84
84
// The plugin can reject the request if the token is missing or invalid (doesn't pass JWT `verify` flow).
85
85
// By default, the plugin will reject the request if the token is missing or invalid.
You can’t perform that action at this time.
0 commit comments