Skip to content

Commit

Permalink
sp oauth 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Tooley committed Nov 4, 2021
1 parent 1af3501 commit 51380c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions svc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,13 @@ def create_auth_spotify_object():

sp_oauth = SpotifyOAuth(scope=scope, cache_path=cache)
url = sp_oauth.get_authorize_url()
code = sp_oauth.parse_response_code(url)
# code = sp_oauth.parse_response_code(url)

Logging.log(__name__, f"url: {url}")
Logging.log(__name__, f"code: {code}")
# Logging.log(__name__, f"code: {code}")
Logging.log(__name__, f"auth: {sp_oauth.get_authorize_url()}")

token = sp_oauth.get_access_token(code)
token = sp_oauth.get_access_token(url)
sp = spotipy.Spotify(auth=token['access_token'])

return sp
Expand Down

0 comments on commit 51380c5

Please sign in to comment.