Skip to content

feat: integrate authentication with next-auth and add Spotify connection#26

Merged
zakkiyyat merged 2 commits intoMixMatch-Inc:mainfrom
nottherealalanturing:ft/spotf
Aug 23, 2025
Merged

feat: integrate authentication with next-auth and add Spotify connection#26
zakkiyyat merged 2 commits intoMixMatch-Inc:mainfrom
nottherealalanturing:ft/spotf

Conversation

@nottherealalanturing
Copy link
Contributor

This PR add a dedicated spotify-service.ts that centralizes all Spotify Web API interactions. The service manages the full OAuth 2.0 lifecycle, including silent token refreshes, and implements robust error handling with support for automatic retries and exponential backoff on rate limits. Typed helper methods such as getTopArtists(), getTopTracks(), and searchSongs() are exposed, providing a clean and resilient abstraction for the rest of the app to consume.

closes #11

Copy link
Contributor

@zakkiyyat zakkiyyat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure to always test locally and fix any errors, eslint is currently stopping compilation

Copy link
Contributor

@zakkiyyat zakkiyyat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good.

@zakkiyyat zakkiyyat merged commit 2a4d4df into MixMatch-Inc:main Aug 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Develop a Resilient Spotify API Abstraction Layer

2 participants