We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: