{"library":"mercurius-auth","type":"library","category":null,"description":"Mercurius Auth is a Fastify plugin designed to add configurable authentication and authorization support to GraphQL APIs built with Mercurius. It is currently at stable version 6.0.0, with major updates often aligning with new Fastify or Mercurius versions. The plugin allows defining auth directives directly within the GraphQL schema to apply custom policies against protected fields, supporting both normal and gateway modes. Alternatively, it can operate in an 'External Policy' mode, offering programmatic control over authorization. Key differentiators include its tight integration with the Fastify and Mercurius ecosystems, its ability to build an auth context, and its GraphQL spec compliance, including features like schema filtering and replacement. Development appears active, with regular updates and dependency bumps.","language":"javascript","status":"active","version":"6.0.0","tags":["javascript","typescript"],"install":[{"cmd":"npm install mercurius-auth","imports":["import mercuriusAuth from 'mercurius-auth'","import Fastify from 'fastify'","import mercurius from 'mercurius'"]},{"cmd":"yarn add mercurius-auth","imports":[]},{"cmd":"pnpm add mercurius-auth","imports":[]}],"homepage":null,"github":"https://github.com/mercurius-js/auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mercurius-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mercurius-auth/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}