Made cache_path and username optional (#567)

* Made cache_path and username optional

* Update readme and example

* Lint

* Lint

* Feedback / add warning
This commit is contained in:
Stéphane Bruckert authored and GitHub committed 2020-08-30 23:59:38 +01:00
1 parent d448d33704
commit d0ca977647
9 files changed
+126 -137

No files matched your search

+2 -2
View File
@@ -436,8 +436,8 @@ class TestSpotifyPKCE(unittest.TestCase):
auth.get_pkce_handshake_parameters()
self.assertEqual(auth.code_challenge,
base64.urlsafe_b64encode(
hashlib.sha256(auth.code_verifier.encode('utf-8'))
.digest())
hashlib.sha256(auth.code_verifier.encode('utf-8'))
.digest())
.decode('utf-8')
.replace('=', ''))