{"library":"opencode-copilot-auth","title":"OpenCode Copilot Auth","description":"Provides authentication utilities for OpenCode Copilot, an AI-powered code assistant. Version 0.0.12 is the latest. The package handles JWT token management and GitHub App authentication flows. It is designed for Node.js environments and supports both CommonJS and ESM. It simplifies the process of obtaining and validating access tokens for Copilot services.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install opencode-copilot-auth"],"cli":null},"imports":["import { AuthClient } from 'opencode-copilot-auth'","import { getToken } from 'opencode-copilot-auth'","import { verifyToken } from 'opencode-copilot-auth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { AuthClient, getToken } from 'opencode-copilot-auth';\n\nconst client = new AuthClient({\n  appId: process.env.APP_ID ?? '',\n  privateKey: process.env.PRIVATE_KEY ?? '',\n});\n\nconst token = await getToken({\n  installationId: process.env.INSTALLATION_ID ?? '',\n  client,\n});\n\nconsole.log(token);","lang":"typescript","description":"Initializes an AuthClient with environment variables and retrieves a token for a GitHub App installation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}