Skip to content

Commit

Permalink
fix(provider): use authed_user on slack instead of spotify (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 authored and balazsorban44 committed Feb 1, 2021
1 parent daed68a commit 1caa9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/lib/oauth/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function getOAuth2AccessToken (code, provider, codeVerifier) {
results = querystring.parse(data)
}
let accessToken = results.access_token
if (provider.id === 'spotify') {
if (provider.id === 'slack') {
accessToken = results.authed_user.access_token
}
const refreshToken = results.refresh_token
Expand Down

0 comments on commit 1caa9bb

Please sign in to comment.