Skip to content

Commit

Permalink
chore(miro): Black
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jun 22, 2023
1 parent 913092e commit 069af44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion allauth/socialaccount/providers/miro/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class MiroOAuth2Adapter(OAuth2Adapter):
profile_url = "https://api.miro.com/v1/users/me"

def complete_login(self, request, app, token, response):
headers = {"Authorization": f"Bearer {token.token}", "Content-Type": "application/json"}
headers = {
"Authorization": f"Bearer {token.token}",
"Content-Type": "application/json",
}
extra_data = requests.get(self.profile_url, headers=headers)
extra_data.raise_for_status()
return self.get_provider().sociallogin_from_response(request, extra_data.json())
Expand Down

0 comments on commit 069af44

Please sign in to comment.