pilcrowOnPaper / arctic

OAuth 2.0 clients for popular providers

Home Page:https://arctic-reddit.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refreshing tokens not working for Spotify provider

dukesteen opened this issue · comments

commented

Refreshing tokens using refreshAccessToken() is not working for the Spotify provider as the client secret is not being passed to the underlying refresh function.

Proposed fix

Change https://github.com/pilcrowOnPaper/arctic/blob/main/src/providers/spotify.ts#L45 to include {credentials: this.clientSecret}

Fixed with #60