oAuth not redirecting back to application
Hello Ivan,
ISSUE: The code does not seem to hit "http://localhost:4000/api/v1/auth/twitter". The popup seems to return to the callbackurl defined in the Application Settings on the developer dashboard.
EXPECTED BEHAVIOUR: I expected the popup to close and return to http://localhost:4000/api/v1/auth/twitter where the code would be verified and then saved to the user model.
I am new to Twitter API and oAuth.
I have implemented your code and the Twitter window appears.
When i authorize my application, it will then redirect to the callbackurl defined in the Application Settings.
This does not return to my current app with the token information that was requested.
This endpoint does not exist in the application.
oauth_callback: "http%3A%2F%2Flocalhost%3A3000%2Ftwitter-callback",
Should the callback be router.route('/auth/twitter')? Should this be defined in the Application settings?
<TwitterLogin loginUrl="http://localhost:4000/api/v1/auth/twitter" onFailure={this.onFailed} onSuccess={this.onSuccess} requestTokenUrl="http://localhost:4000/api/v1/auth/twitter/reverse" showIcon={true} customHeaders={customHeader}> Custom Twitter Login content </TwitterLogin>
@Neuroforge any luck getting it to work?