@graphql-yoga/plugin-jwt 3.15.0 → 3.15.1
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/esm/plugin.js +1 -1
- package/package.json +2 -2
- package/typings/config.d.cts +1 -1
- package/typings/config.d.ts +1 -1
- package/typings/utils.d.cts +1 -1
- package/typings/utils.d.ts +1 -1
package/esm/plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLError } from 'graphql';
|
|
2
2
|
import jsonwebtoken from 'jsonwebtoken';
|
|
3
3
|
import { handleMaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
|
-
import { normalizeConfig } from './config.js';
|
|
4
|
+
import { normalizeConfig, } from './config.js';
|
|
5
5
|
import { badRequestError, unauthorizedError } from './utils.js';
|
|
6
6
|
export function useJWT(options) {
|
|
7
7
|
let logger;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-jwt",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.1",
|
|
4
4
|
"description": "jwt plugin for GraphQL Yoga.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
7
|
-
"graphql-yoga": "^5.21.
|
|
7
|
+
"graphql-yoga": "^5.21.1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@whatwg-node/promise-helpers": "^1.3.2",
|
package/typings/config.d.cts
CHANGED
package/typings/config.d.ts
CHANGED
package/typings/utils.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createGraphQLError } from 'graphql-yoga';
|
|
2
2
|
import { type Options as JwksClientOptions } from 'jwks-rsa';
|
|
3
|
-
import {
|
|
3
|
+
import type { ExtractTokenFunction, GetSigningKeyFunction } from './config.cjs';
|
|
4
4
|
import '@whatwg-node/server-plugin-cookies';
|
|
5
5
|
export declare function extractFromHeader(options: {
|
|
6
6
|
name: string;
|
package/typings/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createGraphQLError } from 'graphql-yoga';
|
|
2
2
|
import { type Options as JwksClientOptions } from 'jwks-rsa';
|
|
3
|
-
import {
|
|
3
|
+
import type { ExtractTokenFunction, GetSigningKeyFunction } from './config.js';
|
|
4
4
|
import '@whatwg-node/server-plugin-cookies';
|
|
5
5
|
export declare function extractFromHeader(options: {
|
|
6
6
|
name: string;
|