WeSearch

I built a Spotify recently-played banner for GitHub — without registering an OAuth app

·3 min read · 0 reactions · 0 comments · 15 views
#github#spotify#opensource
I built a Spotify recently-played banner for GitHub — without registering an OAuth app
⚡ TL;DR · AI summary

Nityanand Thakur developed a self-hosted Spotify recently-played banner for GitHub without the need for OAuth app registration. The solution utilizes the sp_dc session cookie and the PKCE authorization flow to obtain a bearer token for accessing recently played tracks. The implementation is designed to cache tokens and bypass GitHub's Camo proxy cache for real-time updates.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3957880) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Nityanand Thakur Posted on May 29 I built a Spotify recently-played banner for GitHub — without registering an OAuth app #go #github #opensource #spotify Most "Spotify for GitHub README" projects share the same setup story: go to the Spotify developer dashboard, register an app, grab a client ID and secret, plug them into some hosted service, authorize it, and hope the maintainer keeps the server running. I wanted something self-hosted, with no developer app registration at all.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)