Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Add folder permissions to OAuth scopes and descriptions

Kiran K5322b6661164
diff --git a/apps/web/lib/api/oauth/constants.ts b/apps/web/lib/api/oauth/constants.ts
index ab582a0402..32452ae610 100644
--- a/apps/web/lib/api/oauth/constants.ts
+++ b/apps/web/lib/api/oauth/constants.ts
@@ -30,6 +30,8 @@ export const OAUTH_SCOPES = [
"domains.write",
"webhooks.read",
"webhooks.write",
+ "folders.read",
+ "folders.write",
"user.read", // default scope, no need to request it
];
@@ -47,4 +49,6 @@ export const OAUTH_SCOPE_DESCRIPTIONS = {
"user.read": "Read your name, email and profile image",
"webhooks.read": "Read access to webhooks",
"webhooks.write": "Read and Write access to webhooks",
+ "folders.read": "Read access to folders",
+ "folders.write": "Read and Write access to folders",
};