Skip to content

Commit

Permalink
fix(auth): send Client-ID header on all Twitch API requests (#550)
Browse files Browse the repository at this point in the history
As of now, Twitch requires this header on all Helix endpoints.
  • Loading branch information
Alex Van Camp committed Apr 30, 2020
1 parent b349781 commit 12d2a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ if (config.login.twitch && config.login.twitch.enabled) {
clientID: config.login.twitch.clientID,
clientSecret: config.login.twitch.clientSecret,
callbackURL: `${protocol}://${config.baseURL}/login/auth/twitch`,
scope
scope,
customHeaders: {'Client-ID': config.login.twitch.clientID}
}, (accessToken, refreshToken, profile, done) => {
profile.allowed = (config.login.twitch.allowedUsernames.indexOf(profile.username) > -1);

Expand Down

0 comments on commit 12d2a5e

Please sign in to comment.