Skip to content

Commit bf14feb

Browse files
authored
Merge pull request #22 from poblouin/1.2.1
1.2.1
2 parents aa8769e + c407792 commit bf14feb

File tree

7 files changed

+523
-1664
lines changed

7 files changed

+523
-1664
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 18.4.0
1+
nodejs 18.7.0

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ To use this plugin you must provide some authentication information to Spotify a
3939

4040
To do so, go to [Spotify Dev Dashboard](https://developer.spotify.com/dashboard) and create an app. Once this is done you will have your clientId and clientSecret.
4141

42+
By default, if you do not set the redirect URI in the app setting, it will be set to `https://example.com/callback`. This is the URI I use in all the examples below. If you want to use another redirect URI, you will need to set it in the app setting in your Spotify Dev Dashboard and also set the same URI in the plugin's config. If you don't do that you will end up with an Invalid Redirect URI error.
43+
4244
2. Obtain the auth code that this plugin will need to generate the access and refresh tokens
4345

4446
To do so, you need to allow access to the app you created at the previous step. You only need to do this once.

config.dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"spotifyClientId": "...",
88
"spotifyClientSecret": "...",
99
"spotifyAuthCode": "...",
10+
"spotifyRedirectUri": "https://example.com/callback",
1011
"devices": [
1112
{
1213
"deviceName": "A Speaker",

config.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
"type": "string",
2222
"required": true
2323
},
24+
"spotifyRedirectUri": {
25+
"title": "Spotify Redirect URI",
26+
"type": "string",
27+
"default": "https://example.com/callback",
28+
"required": true
29+
},
2430
"spotifyAuthCode": {
2531
"title": "Spotify Auth Code",
2632
"type": "string",

0 commit comments

Comments
 (0)