Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix spotify provider #60

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changesets/7dd98.patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: Fix spotify provider refresh token not being passed the credentials
4 changes: 3 additions & 1 deletion src/providers/spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export class Spotify implements OAuth2Provider {
}

public async refreshAccessToken(refreshToken: string): Promise<SpotifyTokens> {
const result = await this.client.refreshAccessToken<TokenResponseBody>(refreshToken);
const result = await this.client.refreshAccessToken<TokenResponseBody>(refreshToken, {
credentials: this.clientSecret
});
const tokens: SpotifyTokens = {
accessToken: result.access_token,
refreshToken: result.refresh_token,
Expand Down