Invalid redirect URI on spotify auth

前端 未结 11 1445
日久生厌
日久生厌 2021-02-03 16:56

I try to auth user through my app with spotify Web API but I receive this error:

INVALID_CLIENT: Invalid redirect URI

URL:

GET         


        
11条回答
  •  耶瑟儿~
    2021-02-03 17:27

    First. You have to be sure that you're using app.js from authorization_code directory.

    Second. Be sure you edited app.js. That third line is important.

    var client_id = '---'; // Your client id
    var client_secret = '---'; // Your secret
    var redirect_uri = 'http://localhost:8888/callback'; // Your redirect uri - EXAMPLE

提交回复
热议问题