{% extends 'base.html' %} {% block title %}Spotify Token Wizard{% endblock %} {% block content %}

Spotify Refresh Token Wizard

Spotify Logo

What is this for?

This wizard helps you generate a Spotify refresh token for the system account (fallback account). This token will be used when:

The refresh token doesn't expire, making it ideal for long-term system use.

{% if has_token %}
Fallback token is configured

A Spotify refresh token is already configured for the system account. You can replace it if needed.

{% endif %} {% if has_credentials %}

Option 1: Automated Setup (Recommended)

This will guide you through the Spotify OAuth flow to generate a refresh token automatically.

You'll be redirected to Spotify to authorize access, then brought back to this page when complete.

Option 2: Manual Entry

If you already have a Spotify refresh token (obtained elsewhere), you can enter it directly:

{% else %}
Spotify API credentials not configured

Your Spotify API credentials are missing or incomplete. The following values need to be set in your environment configuration:

{% endif %}
Back to Settings Learn about Spotify authentication
{% endblock %}