{"library":"graphql-passport","type":"library","category":null,"description":"A library providing a Passport.js strategy (GraphQLLocalStrategy) and context builder utilities for integrating authentication into GraphQL servers (Express + Apollo Server). Version 0.6.8 ships TypeScript types and supports Express 4.x, Passport 0.x, subscriptions-transport-ws 0.x, and ws 7.x / 8.x. It simplifies authenticating users via mutations by wrapping passport.authenticate and passport.login into promises accessible from the GraphQL context, and also supports session-based auth and subscription user resolution. Compared to alternatives like graphql-auth, it directly leverages the Passport.js ecosystem.","language":"javascript","status":"active","version":"0.6.8","tags":["javascript","graphql","passport","authorization","authentication","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-passport","imports":["import { GraphQLLocalStrategy } from 'graphql-passport'","import { buildContext } from 'graphql-passport'","import { createOnConnect } from 'graphql-passport'"]},{"cmd":"yarn add graphql-passport","imports":[]},{"cmd":"pnpm add graphql-passport","imports":[]}],"homepage":"https://github.com/ericmakesapps/graphql-passport#readme","github":"https://github.com/ericmakesapps/graphql-passport","docs":null,"changelog":null,"pypi":null,"npm":"graphql-passport","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}