At authorization/authorization_code_pkce/README.md, the file is apparently incomplete, even though this file is referenced in the official docs as an "example app implementing Authorization Code flow with PKCE extension". The file reads as follows:
Spotify Authorization Code with PKCE example
This app displays your Spotify profile information using Authorization Code with PKCE
to grant permissions to the app.
Using your own credentials
You will need to register your app and get your own credentials from the Spotify for Developers Dashboard.
- Create a new app in the dashboard and add
http://localhost:8080 to the app's redirect URL list.
- Once you have created your app, update the
client_id and redirect_uri in the public/app.js file with the values obtained from the app settings in the dashboard.
Running the example
From a console shell:
Then, open http://localhost:8080 in a browser.