Skip to content
This repository has been archived by the owner. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/services/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ def delete(self, route_url, params = {}):
def get_user_from_token(access_token):
"""Fetch user data using the access token."""
url = api_url + '/user'
params = { 'access_token': access_token }
headers = {'Authorization' : 'token ' + access_token}

return requests.get(url, params=params).json()
return requests.get(url, headers=headers).json()