You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to verify the user via oauth2.0 & but when the .generateOAuth2AuthLink() is used & the callback URL is passed, it is returned in the form redirect_uri=%2Fauth%2Fcallback whereas Twitter wants it in the form redirect_uri=http://{host}/auth/callback. How do I solve this issue?
Code:
const{ url, codeVerifier, state }=twtrClient_o2.generateOAuth2AuthLink('/auth/callback?callbackType=twitter',{scope: ['users.read','bookmark.read','bookmark.write','offline.access','tweet.read',],})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been trying to verify the user via oauth2.0 & but when the
.generateOAuth2AuthLink()
is used & the callback URL is passed, it is returned in the formredirect_uri=%2Fauth%2Fcallback
whereas Twitter wants it in the formredirect_uri=http://{host}/auth/callback
. How do I solve this issue?Code:
Beta Was this translation helpful? Give feedback.
All reactions