Get credentials
1
Create an OAuth consumer
Go to your Bitbucket workspace settings: Workspace Settings > Apps and features > OAuth consumers > Add consumer.Set the Callback URL to:2
Copy your credentials
After saving, expand the consumer to see the Key (client ID) and Secret (client secret).Configuration
lib/kavach.ts
Scopes
Default scope:account
Bitbucket does not expose the user’s email by default through the profile endpoint if it is set to private. The
email scope fetches it from a separate endpoint. KavachOS requests both automatically.