@graphql-mesh/plugin-jwt-auth 1.3.10 → 1.4.0
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 +2 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractFromHeader = exports.extractFromCookie = exports.createRemoteJwksSigningKeyProvider = exports.createInlineSigningKeyProvider = void 0;
|
|
3
|
+
exports.extractFromHeader = exports.extractFromCookie = exports.extractFromConnectionParams = exports.createRemoteJwksSigningKeyProvider = exports.createInlineSigningKeyProvider = void 0;
|
|
4
4
|
exports.useForwardedJWT = useForwardedJWT;
|
|
5
5
|
exports.useJWT = useJWT;
|
|
6
6
|
const plugin_jwt_1 = require("@graphql-yoga/plugin-jwt");
|
|
7
7
|
var plugin_jwt_2 = require("@graphql-yoga/plugin-jwt");
|
|
8
8
|
Object.defineProperty(exports, "createInlineSigningKeyProvider", { enumerable: true, get: function () { return plugin_jwt_2.createInlineSigningKeyProvider; } });
|
|
9
9
|
Object.defineProperty(exports, "createRemoteJwksSigningKeyProvider", { enumerable: true, get: function () { return plugin_jwt_2.createRemoteJwksSigningKeyProvider; } });
|
|
10
|
+
Object.defineProperty(exports, "extractFromConnectionParams", { enumerable: true, get: function () { return plugin_jwt_2.extractFromConnectionParams; } });
|
|
10
11
|
Object.defineProperty(exports, "extractFromCookie", { enumerable: true, get: function () { return plugin_jwt_2.extractFromCookie; } });
|
|
11
12
|
Object.defineProperty(exports, "extractFromHeader", { enumerable: true, get: function () { return plugin_jwt_2.extractFromHeader; } });
|
|
12
13
|
/**
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useJWT as useYogaJWT, } from '@graphql-yoga/plugin-jwt';
|
|
2
|
-
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromCookie, extractFromHeader, } from '@graphql-yoga/plugin-jwt';
|
|
2
|
+
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromConnectionParams, extractFromCookie, extractFromHeader, } from '@graphql-yoga/plugin-jwt';
|
|
3
3
|
/**
|
|
4
4
|
* This Yoga plugin is used to extracted the forwarded (from Mesh gateway) the JWT token and claims.
|
|
5
5
|
* Use this plugin in your Yoga server to extract the JWT token and claims from the forwarded extensions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/plugin-jwt-auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@graphql-mesh/types": "^0.103.10",
|
|
10
10
|
"@graphql-mesh/utils": "^0.103.10",
|
|
11
|
-
"@graphql-yoga/plugin-jwt": "^3.
|
|
11
|
+
"@graphql-yoga/plugin-jwt": "^3.4.9",
|
|
12
12
|
"tslib": "^2.4.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
package/typings/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Plugin as YogaPlugin } from 'graphql-yoga';
|
|
2
2
|
import type { GatewayPlugin } from '@graphql-hive/gateway-runtime';
|
|
3
3
|
import { type JWTExtendContextFields, type JwtPluginOptions } from '@graphql-yoga/plugin-jwt';
|
|
4
|
-
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromCookie, extractFromHeader, type GetSigningKeyFunction, type JWTExtendContextFields, type JwtPluginOptions, type ExtractTokenFunction, } from '@graphql-yoga/plugin-jwt';
|
|
4
|
+
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromConnectionParams, extractFromCookie, extractFromHeader, type GetSigningKeyFunction, type JWTExtendContextFields, type JwtPluginOptions, type ExtractTokenFunction, } from '@graphql-yoga/plugin-jwt';
|
|
5
5
|
export type JWTAuthPluginOptions = JwtPluginOptions & {
|
|
6
6
|
forward?: {
|
|
7
7
|
payload?: boolean | string;
|
package/typings/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Plugin as YogaPlugin } from 'graphql-yoga';
|
|
2
2
|
import type { GatewayPlugin } from '@graphql-hive/gateway-runtime';
|
|
3
3
|
import { type JWTExtendContextFields, type JwtPluginOptions } from '@graphql-yoga/plugin-jwt';
|
|
4
|
-
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromCookie, extractFromHeader, type GetSigningKeyFunction, type JWTExtendContextFields, type JwtPluginOptions, type ExtractTokenFunction, } from '@graphql-yoga/plugin-jwt';
|
|
4
|
+
export { createInlineSigningKeyProvider, createRemoteJwksSigningKeyProvider, extractFromConnectionParams, extractFromCookie, extractFromHeader, type GetSigningKeyFunction, type JWTExtendContextFields, type JwtPluginOptions, type ExtractTokenFunction, } from '@graphql-yoga/plugin-jwt';
|
|
5
5
|
export type JWTAuthPluginOptions = JwtPluginOptions & {
|
|
6
6
|
forward?: {
|
|
7
7
|
payload?: boolean | string;
|