Skip to content

Commit

Permalink
pass args/kwargs to storage in TokenHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
s4w3d0ff authored Feb 3, 2025
1 parent 2482ffa commit 09ab6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotifio/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ async def stop(self):


class TokenHandler:
def __init__(self, client_id, client_secret, redirect_uri=None, scope=[], storage=None):
def __init__(self, client_id, client_secret, redirect_uri=None, scope=[], storage=None, *args, **kwargs):
self.client_id = client_id
self.redirect_uri = redirect_uri or "http://localhost:8888/callback"
self.scope = scope
self.storage = storage or JSONStorage()
self.storage = storage or JSONStorage(*args, **kwargs)
self._state = os.urandom(14).hex()
self._auth_code = None
self._auth_future = None
Expand Down

0 comments on commit 09ab6b4

Please sign in to comment.