Authentication
Zoom
Sign in with Zoom using OAuth 2.0.
Setup
Get credentials
Go to the Zoom App Marketplace and click Develop > Build App. Choose OAuth as the app type. Add your redirect URI:
https://your-app.com/api/kavach/auth/oauth/callback/zoomConfigure
import { createKavach } from 'kavachos';
import { oauth } from 'kavachos/auth';
import { zoomProvider } from 'kavachos/auth';
const kavach = await createKavach({
database: { provider: 'sqlite', url: 'kavach.db' },
plugins: [
oauth({
providers: [
zoomProvider(
process.env.ZOOM_CLIENT_ID!,
process.env.ZOOM_CLIENT_SECRET!,
),
],
}),
],
});ZOOM_CLIENT_ID=...
ZOOM_CLIENT_SECRET=...Scopes
Default scopes: openid, profile, email
| Scope | What it unlocks |
|---|---|
openid | OIDC identity token |
profile | Name and profile picture |
email | Email address |
meeting:read | Read meeting info |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /auth/oauth/authorize/zoom | Redirect to Zoom |
| GET | /auth/oauth/callback/zoom | Handle callback |