A simple GoLang service which returns spotify anonymous & account tokens without having to deal with their annoying TOTP shit.
For god's sake, just use docker. Otherwise, have fun compiling yourself:
Requirements:
go install github.com/topi314/spotify-tokener@masterNow run it via systemd or something.
Create your compose.yml and run docker compose up -d.
services:
spotify-tokener:
image: ghcr.io/topi314/spotify-tokener:master
container_name: spotify-tokener
restart: unless-stopped
environment:
# - SPOTIFY_TOKENER_ADDR=0.0.0.0:8080
# - SPOTIFY_TOKENER_CHROME_PATH=chrome
# - SPOTIFY_TOKENER_LOG_LEVEL=INFO
ports:
- 8080:8080The endpoint is under /api/token and cookies are relayed 1:1 (like the sp_dc cookie for account login).
This project is licensed under the Apache License 2.0.
Contributions are welcome, but for bigger changes, please open an issue first to discuss what you would like to change.