Skip to main content

Setup

1

Get credentials

Go to huggingface.co/settings/applications and click New OAuth application. Set the redirect URI to:
2

Configure

lib/kavach.ts

Scopes

Default scopes: openid, profile, email
Hugging Face supports the OIDC discovery endpoint at https://huggingface.co. User IDs are stable numeric values.

Endpoints

Last modified on April 29, 2026