Skip to content

Commit

Permalink
fix(socialaccount): token str mixup at PayPal, Salesforce
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jul 30, 2024
1 parent 3c836f8 commit 1758bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion allauth/socialaccount/providers/paypal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def complete_login(self, request, app, token, **kwargs):
.get_requests_session()
.post(
self.profile_url,
params={"schema": "openid", "access_token": token},
params={"schema": "openid", "access_token": token.token},
)
)
extra_data = response.json()
Expand Down
2 changes: 1 addition & 1 deletion allauth/socialaccount/providers/salesforce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def complete_login(self, request, app, token, **kwargs):
resp = (
get_adapter()
.get_requests_session()
.get(self.userinfo_url, params={"oauth_token": token})
.get(self.userinfo_url, params={"oauth_token": token.token})
)
resp.raise_for_status()
extra_data = resp.json()
Expand Down

0 comments on commit 1758bc6

Please sign in to comment.