mirror of
https://github.com/Paxsenix0/Spotify-Canvas-API.git
synced 2026-04-27 08:15:52 +03:00
[PR #3] [MERGED] feat: implement dynamic TOTP secret fetching and fallback mechanism #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Spotify-Canvas-API#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Paxsenix0/Spotify-Canvas-API/pull/3
Author: @Inzaniity
Created: 7/25/2025
Status: ✅ Merged
Merged: 7/26/2025
Merged by: @Paxsenix0
Base:
main← Head:TOTP-Token-Fetch📝 Commits (1)
d1bb9d9feat: implement dynamic TOTP secret fetching and fallback mechanism📊 Changes
1 file changed (+115 additions, -13 deletions)
View changed files
📝
services/spotifyAuthService.js(+115 -13)📄 Description
This PR implements automatic fetching of TOTP secrets from the Spotify secrets repository, replacing the hardcoded secret with a dynamic system that automatically updates to use the newest available tokens. #2
The fallback secret is kept for reference but will likely fail as Spotify rotates secrets frequently. The system automatically handles the transition to new secrets without service interruption
I also added dotenv import in spotifyAuthService.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.