Skip to content

Commit

Permalink
fewer permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
domino14 committed Dec 4, 2024
1 parent 0323a62 commit 619ae16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bruno/patreon/Get Identity.bru
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ meta {
}

get {
url: https://www.patreon.com/api/oauth2/v2/identity?fields[user]=email,first_name,last_name&fields[campaign]=summary,is_monthly&fields[member]=full_name,is_follower,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status&fields[tier]=amount_cents,created_at,description,discord_role_ids,edited_at,patron_count,published,published_at,requires_shipping,title,url&include=memberships,campaign
url: https://www.patreon.com/api/oauth2/v2/identity?fields[user]=email,first_name,last_name&fields[campaign]=summary,is_monthly&fields[member]=full_name,is_follower,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status&fields[tier]=amount_cents,created_at,description,discord_role_ids,edited_at,patron_count,published,published_at,requires_shipping,title,url&include=memberships
body: none
auth: inherit
}
Expand All @@ -15,7 +15,7 @@ params:query {
fields[campaign]: summary,is_monthly
fields[member]: full_name,is_follower,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status
fields[tier]: amount_cents,created_at,description,discord_role_ids,edited_at,patron_count,published,published_at,requires_shipping,title,url
include: memberships,campaign
include: memberships
}

headers {
Expand Down
2 changes: 1 addition & 1 deletion bruno/patreon/Get Member.bru
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ meta {
}

get {
url: https://www.patreon.com/api/oauth2/v2/members/185270fa-e835-4934-9b37-0b0b1fd702ef?fields[address]=line_1,line_2,addressee,postal_code,city&fields[member]=full_name,is_follower,last_charge_date&include=address,user,campaign,currently_entitled_tiers&fields[tier]=title,description
url: https://www.patreon.com/api/oauth2/v2/members/b2fddab5-1ba5-402c-b825-7b4d8189c56a?fields[address]=line_1,line_2,addressee,postal_code,city&fields[member]=full_name,is_follower,last_charge_date&include=address,user,campaign,currently_entitled_tiers&fields[tier]=title,description
body: none
auth: inherit
}
Expand Down
4 changes: 1 addition & 3 deletions liwords-ui/src/donate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ const LoginWithPatreonButton: React.FC = () => {
const redirectUri = encodeURIComponent(
import.meta.env.PUBLIC_PATREON_REDIRECT_URL
);
const scopes = encodeURIComponent(
'identity identity[email] identity.memberships campaigns.members'
);
const scopes = encodeURIComponent('identity identity[email]');
const csrfToken = Math.random().toString(36).substring(2);

// Save the CSRF token on the backend
Expand Down

0 comments on commit 619ae16

Please sign in to comment.