Skip to content

Commit ac894be

Browse files
committed
Adjust scopes
1 parent 2a83528 commit ac894be

3 files changed

Lines changed: 65 additions & 21 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polar-cli",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "",
55
"bin": "bin/cli.js",
66
"type": "module",

src/services/oauth.ts

Lines changed: 63 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,68 @@ const PRODUCTION_TOKEN_URL = "https://api.polar.sh/v1/oauth2/token";
2424

2525
const config = {
2626
scopes: [
27-
"web:read",
28-
"web:write",
29-
"openid",
30-
"profile",
31-
"email",
32-
"user:read",
33-
"organizations:read",
34-
"organizations:write",
35-
"products:read",
36-
"products:write",
37-
"benefits:read",
38-
"benefits:write",
39-
"discounts:read",
40-
"discounts:write",
41-
"files:write",
42-
"files:read",
43-
"customers:write",
44-
"customers:read",
27+
'benefits:read',
28+
'benefits:write',
29+
'checkout_links:read',
30+
'checkout_links:write',
31+
'checkouts:read',
32+
'checkouts:write',
33+
'custom_fields:read',
34+
'custom_fields:write',
35+
'customer_meters:read',
36+
'customer_portal:read',
37+
'customer_portal:write',
38+
'customer_seats:read',
39+
'customer_seats:write',
40+
'customer_sessions:write',
41+
'customers:read',
42+
'customers:write',
43+
'discounts:read',
44+
'discounts:write',
45+
'disputes:read',
46+
'email',
47+
'events:read',
48+
'events:write',
49+
'files:read',
50+
'files:write',
51+
'license_keys:read',
52+
'license_keys:write',
53+
'member_sessions:write',
54+
'members:read',
55+
'members:write',
56+
'meters:read',
57+
'meters:write',
58+
'metrics:read',
59+
'metrics:write',
60+
'notification_recipients:read',
61+
'notification_recipients:write',
62+
'notifications:read',
63+
'notifications:write',
64+
'openid',
65+
'orders:read',
66+
'orders:write',
67+
'organization_access_tokens:read',
68+
'organization_access_tokens:write',
69+
'organizations:read',
70+
'organizations:write',
71+
'payments:read',
72+
'payouts:read',
73+
'payouts:write',
74+
'products:read',
75+
'products:write',
76+
'profile',
77+
'refunds:read',
78+
'refunds:write',
79+
'subscriptions:read',
80+
'subscriptions:write',
81+
'transactions:read',
82+
'transactions:write',
83+
'user:read',
84+
'user:write',
85+
'wallets:read',
86+
'wallets:write',
87+
'webhooks:read',
88+
'webhooks:write',
4589
],
4690
redirectUrl: "http://127.0.0.1:3333/oauth/callback",
4791
};
@@ -87,7 +131,7 @@ const captureAccessTokenFromHTTPServer = (server: PolarEnvironment) =>
87131
}
88132
});
89133

90-
httpServer?.listen(3333, () => {
134+
httpServer?.listen(3333, "127.0.0.1", () => {
91135
open(authorizationUrl);
92136
});
93137
});

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = "v1.3.4";
1+
export const VERSION = "v1.3.5";

0 commit comments

Comments
 (0)