Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
KavachOS v0.4.2 is out. Install or star on GitHub.
Authenticate users via Figma OAuth 2.0 with figmaProvider. Covers app registration, redirect URI setup, and the file read scope needed for design file access.
figmaProvider
https://your-app.com/api/kavach/auth/oauth/callback/figma
import { createKavach } from 'kavachos'; import { oauth } from 'kavachos/auth'; import { figmaProvider } from 'kavachos/auth'; const kavach = await createKavach({ database: { provider: 'sqlite', url: 'kavach.db' }, plugins: [ oauth({ providers: [ figmaProvider( process.env.FIGMA_CLIENT_ID!, process.env.FIGMA_CLIENT_SECRET!, ), ], }), ], });
FIGMA_CLIENT_ID=... FIGMA_CLIENT_SECRET=...
file_read
/auth/oauth/authorize/figma
/auth/oauth/callback/figma
Was this page helpful?