@envelop/generic-auth
Version:
This plugin allows you to implement custom authentication flow by providing a custom user resolver based on the original HTTP request. The resolved user is injected into the GraphQL execution `context`, and you can use it in your resolvers to fetch the cu
64 lines • 1.72 kB
JSON
{
"name": "@envelop/generic-auth",
"version": "9.1.3-alpha-20250306152819-85579bd42888d16682c982a98e5c72d4d7af6a19",
"sideEffects": false,
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
"@envelop/core": "^5.2.3-alpha-20250306152819-85579bd42888d16682c982a98e5c72d4d7af6a19"
},
"dependencies": {
"@graphql-tools/executor": "^1.3.6",
"@graphql-tools/utils": "^10.5.1",
"@whatwg-node/promise-helpers": "^1.2.1",
"tslib": "^2.5.0",
"@envelop/extended-validation": "^5.1.3-alpha-20250306152819-85579bd42888d16682c982a98e5c72d4d7af6a19"
},
"repository": {
"type": "git",
"url": "https://github.com/n1ru4l/envelop.git",
"directory": "packages/plugins/generic-auth"
},
"author": "Dotan Simha <dotansimha@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"main": "cjs/index.js",
"module": "esm/index.js",
"typings": "typings/index.d.ts",
"typescript": {
"definition": "typings/index.d.ts"
},
"type": "module",
"exports": {
".": {
"require": {
"types": "./typings/index.d.cts",
"default": "./cjs/index.js"
},
"import": {
"types": "./typings/index.d.ts",
"default": "./esm/index.js"
},
"default": {
"types": "./typings/index.d.ts",
"default": "./esm/index.js"
}
},
"./*": {
"require": {
"types": "./typings/*.d.cts",
"default": "./cjs/*.js"
},
"import": {
"types": "./typings/*.d.ts",
"default": "./esm/*.js"
},
"default": {
"types": "./typings/*.d.ts",
"default": "./esm/*.js"
}
},
"./package.json": "./package.json"
}
}