Hey so I am trying to authenticate with passport, I am using this package: https://www.npmjs.com/package/passport-twitch.js
I have tried other packages as well but I always get the same error message: InternalOAuthError: Failed to obtain access token
What am I doing wrong with my strategy?
passport.use(
new TwitchStrategy({
clientID: keys.twitchClientID,
clientSecrect: keys.twitchClientSecrect,
// callbackURL:'/auth/twitch/callback',
callbackURL:'http://127.0.0.1:5000/auth/twitch/callback',
scope: "user:read:email analytics:read:games",
proxy: true
}, (accessToken, refreshToken, profile, done) => {
console.log(accessToken);
console.log(profile);
})