This guide helps you generate authentication tokens required for the m5SpotiController firmware.
Before you begin, make sure you have the following:
- An active Spotify account
- Go to the Spotify Developer Page and log in.
- Open the Spotify Developer Dashboard.
- Click on Create App.

- Enter any name and description for your app.
- In Redirect URLs, enter:
https://spotify-refresh-token-generator.netlify.app - Check Web API and Web Playback SDK.
- It should look like this:

- Click Save. Don't close the page yet, you will need Client ID and Client secret

- Visit the Spotify Refresh Token Generator.
- Click Get started and then Skip this step.
- Enter the Client ID and Client Secret from your newly created Spotify app.
- Select user-read-currently-playing, user-read-playback-position, and user-modify-playback-state.

- Click Get Spotify Access Code.
- Accept by clicking Agree.
- Copy and save the generated Auth Key.
- Upload the firmware to the m5stickcplus2.
- Connect to the SpotiSetup hotspot.
- Open a browser and go to http://192.168.4.1.
- Enter the appropriate values into the fields on the page.

- Click Submit.
- Press button B for about 1 second to skip to the next song.
- Press button C for about 1 second to skip to the previous song.
- Press button A for about 1 second to pause/resume the song.
- Press and hold buttons C and B to start the hotspot for configuration.
For any issues or questions, please contact stachu0 on Discord.