Skip to main content

Setup

1

Get credentials

Go to polar.sh and navigate to Settings > OAuth Apps. Create an app and set your redirect URI:
2

Configure

lib/kavach.ts

Scopes

Default scopes: openid, profile, email
Polar is an open source monetization platform for developers. The OAuth integration is useful for gating content based on subscriptions or purchases.

Endpoints

Last modified on April 29, 2026