Hi, there
I use twitter strategy like below
const twitterStrategy = new TwitterStrategy({
consumerKey: TWITTER_APP_ID,
consumerSecret: TWITTER_APP_SECRET,
callbackURL: TWITTER_CALLBACK_URL,
userProfileURL: 'https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true',
includeEmail: true,
}, createOrUpdate)
and use passport-oauth2-refresh to refresh token when access token is expires
passport.use (twitterStrategy)
refresh.use (twitterStrategy)
but it throws an error
throw new Error('Cannot register: not an OAuth2 strategy');
what should I do now and what should I do to refresh access token, please help T.T
Hi, there
I use twitter strategy like below
and use passport-oauth2-refresh to refresh token when access token is expires
but it throws an error
what should I do now and what should I do to refresh access token, please help T.T