UNPKG

@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

85 lines (84 loc) 2.02 kB
{ "name": "@envelop/generic-auth", "version": "11.0.1-alpha-20260205002102-3907273d720911b1f0a452da1b772ad00bc8984d", "type": "module", "repository": { "type": "git", "url": "https://github.com/graphql-hive/graphql-yoga", "directory": "packages/plugins/generic-auth" }, "author": "Dotan Simha <dotansimha@gmail.com>", "license": "MIT", "engines": { "node": ">=18.0.0" }, "main": "dist/index.cjs", "typings": "dist/index.d.mts", "module": "dist/index.mjs", "exports": { ".": { "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }, "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "default": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" } }, "./*": { "require": { "types": "./dist/*.d.cts", "default": "./dist/*.cjs" }, "import": { "types": "./dist/*.d.mts", "default": "./dist/*.mjs" }, "default": { "types": "./dist/*.d.mts", "default": "./dist/*.mjs" } }, "./package.json": "./package.json" }, "files": [ "dist" ], "scripts": { "build": "tsdown", "check": "tsc --pretty --noEmit" }, "peerDependencies": { "@envelop/core": "workspace:*", "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@envelop/extended-validation": "workspace:*", "@graphql-tools/executor": "^1.3.6", "@graphql-tools/utils": "^10.5.1", "@whatwg-node/promise-helpers": "^1.2.1", "tslib": "^2.5.0" }, "devDependencies": { "@envelop/core": "workspace:*", "@graphql-tools/schema": "10.0.30", "graphql": "16.12.0", "tsdown": "^0.20.0-beta.1", "typescript": "5.9.3" }, "publishConfig": { "access": "public" }, "sideEffects": false, "buildOptions": { "input": "./src/index.ts" }, "typescript": { "definition": "dist/index.d.mts" } }