@graphql-yoga/plugin-jwt 2.0.2 → 2.1.1-alpha-20231222140357-d9aea64d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function useJWT(options) {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
async
|
|
28
|
+
async onRequestParse({ request, serverContext, url }) {
|
|
29
29
|
const token = await getToken({ request, serverContext, url });
|
|
30
30
|
if (token != null) {
|
|
31
31
|
const signingKey = options.signingKey ?? (await fetchKey(jwksClient, token));
|
package/esm/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export function useJWT(options) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
|
-
async
|
|
24
|
+
async onRequestParse({ request, serverContext, url }) {
|
|
25
25
|
const token = await getToken({ request, serverContext, url });
|
|
26
26
|
if (token != null) {
|
|
27
27
|
const signingKey = options.signingKey ?? (await fetchKey(jwksClient, token));
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-jwt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1-alpha-20231222140357-d9aea64d",
|
|
4
4
|
"description": "jwt plugin for GraphQL Yoga.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^16.5.0",
|
|
7
|
-
"graphql-yoga": "^5.0
|
|
7
|
+
"graphql-yoga": "^5.1.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"jsonwebtoken": "^9.0.0",
|