Add redirect_uri (#529)

And specify that it should be the address that the App runs over.
This commit is contained in:
Mike iLL Kilmer authored and GitHub committed 2020-07-06 18:58:39 +01:00
1 parent 2bfa7e0151
commit 7eb0eaaebc
1 file changed
+2 -1
+2 -1
View File
@@ -5,6 +5,7 @@ Prerequisites
export SPOTIPY_CLIENT_ID=client_id_here
export SPOTIPY_CLIENT_SECRET=client_secret_here
export SPOTIPY_REDIRECT_URI='http://127.0.0.1:8080' // added to your [app settings](https://developer.spotify.com/dashboard/applications)
// on Windows, use `SET` instead of `export`
Run app.py
@@ -53,4 +54,4 @@ def playlists():
if not session.get('token_info'):
return redirect('/')
else:
return spotify.current_user_playlists()
return spotify.current_user_playlists()