Spoticord Link is a Next.js application that enables users to connect their Spotify accounts to Spoticord.
| Variable | Description |
|---|---|
| DISCORD_TOKEN1 | Any Discord bot token (can be different from a Spoticord instance), for resolving user information |
| DATABASE_URL2 | A postgresql database URL, which must point to the same database as your Spoticord instance |
| SPOTIFY_CLIENT_ID | Your Spotify app Client ID |
| SPOTIFY_CLIENT_SECRET | Your spotify app Client Secret |
| SPOTIFY_REDIRECT_URI3 | The full URI to redirect to after (un)successful Spotify authentication (e.g. http://127.0.0.1:3000/authorize or https://<auto-generated>.vercel.app/authorize) |
- 1: While not required, you may use a different Discord application than the one used for hosting the bot
- 2: Make sure you use the same PostrgesDB database that you use for your Spoticord instance
- 3: Insecure redirect URIs are no longer allowed in Spotify, this includes localhost. You are still allowed to use 127.0.0.1 without https.