Skip to content

Commit

Permalink
update AryanSpotifyTools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanranderiya committed Sep 11, 2023
1 parent b4f1652 commit 0293f18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AryanSpotifyTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import cachetools
import random
import threading
import webbrowser


def revoke_access_token(access_token, client_id, client_secret):
Expand Down Expand Up @@ -179,6 +180,7 @@ def login_to_spotify(self):
open_browser="true",
show_dialog="true",
)

self.access_token = self.sp_oauth.get_cached_token()
self.sp = Spotify(auth=self.access_token["access_token"])
self.user = self.sp.current_user()
Expand Down

0 comments on commit 0293f18

Please sign in to comment.