Skip to content

Commit

Permalink
fix json to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
200516bb committed Aug 7, 2023
1 parent b4c5701 commit 08aebd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ def get(self, code):
},
).json()

oauth_token = json.loads(str(result))
kakao_access_token = oauth_token['access_token']
# oauth_token = json.loads(str(result))
# kakao_access_token = oauth_token['access_token']
return (str(result))
profile_request = requests.get(
"https://kapi.kakao.com/v2/user/me", headers={"Authorization": f"Bearer {kakao_access_token}"}
).json()
Expand Down

0 comments on commit 08aebd0

Please sign in to comment.