{"library":"grant-koa","type":"library","category":null,"description":"grant-koa is a specialized middleware designed to integrate the Grant OAuth Proxy into Koa.js applications. It abstracts the complexities of OAuth and OpenID Connect flows, providing a unified interface for authenticating users against various identity providers (e.g., Google, GitHub, Facebook). The current stable version is 5.4.8. As an adapter for the core `grant` library, its release cadence is generally tied to updates in `grant` and compatibility with major Koa versions. This package is crucial for Koa developers needing to implement robust and flexible authentication/authorization without deep diving into each OAuth provider's specific API, offering a streamlined approach to secure user access and data.","language":"javascript","status":"active","version":"5.4.8","tags":["javascript","oauth","oauth2","openid","openid-connect","authentication","authorization","proxy","middleware","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install grant-koa","imports":["import grant from 'grant-koa';\n// or\nimport Grant from 'grant-koa';","import Grant, { GrantMiddleware } from 'grant-koa';\n// Used for type hinting in TypeScript","import { Context } from 'koa';\n\ninterface CustomContext extends Context {\n  session: Record<string, any>;\n  // ... potentially other grant-specific properties\n}"]},{"cmd":"yarn add grant-koa","imports":[]},{"cmd":"pnpm add grant-koa","imports":[]}],"homepage":null,"github":"https://github.com/simov/grant","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/grant-koa","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/grant-koa/compatibility"}}