{% extends 'base.html' %} {% block title %}Direct Spotify Authentication{% endblock %} {% block content %}

Direct Spotify Authentication

Use a manual bearer token to access the Spotify API directly.

{% if spotify_user %}

Currently authenticated

You are currently authenticated as {{ spotify_username }} (ID: {{ spotify_user }}).

{% endif %} {% if error %}

Error

{{ error }}

{% endif %} {% if success %}

Success

{{ success }}

{% endif %}

How to Get a Bearer Token

  1. Go to the Spotify Developer Console

    You'll need to log in with your Spotify account

  2. Select any API endpoint (e.g., "Get Current User's Profile")

    The specific endpoint doesn't matter, we just need to generate a token

  3. Click the "Get Token" button

    Make sure to select the following scopes:

    • user-read-private
    • user-read-email
    • playlist-read-private
    • playlist-read-collaborative
  4. Copy the generated OAuth token (it starts with "BQ...")

  5. Paste the token in the form below and click "Authenticate"

Enter Your Bearer Token

The token will expire after about 1 hour. You'll need to generate a new one after that.

{% if spotify_user %}

Ready to go!

You're authenticated and can now use the direct Spotify client.

{% endif %}
{% endblock %}