|
@@ -164,11 +164,11 @@ func (s *SpotifyClient) Authenticate() error {
|
164
|
164
|
return nil
|
165
|
165
|
}
|
166
|
166
|
|
167
|
|
-func (s *SpotifyClient) SetupUserAuthenticate() error {
|
|
167
|
+func (s *SpotifyClient) SetupUserAuthenticate(redirectURL string) error {
|
168
|
168
|
s.config = &oauth2.Config{
|
169
|
169
|
ClientID: s.clientID,
|
170
|
170
|
ClientSecret: s.clientSecret,
|
171
|
|
- RedirectURL: "http://localhost:8080/callback",
|
|
171
|
+ RedirectURL: redirectURL,
|
172
|
172
|
Scopes: []string{"playlist-modify-public"},
|
173
|
173
|
Endpoint: spotifyAuth.Endpoint,
|
174
|
174
|
}
|