How do I add two callback url's for development purpose while Passport strategy for authenticating with Twitter using the OAuth 1.0a API

oauth

#1

I need to add two authorized redirect URL , one which is my client server:
http://localhost:3000/auth/twitter/callback
and the other is client
http://localhost:5000/auth/twitter/callback
How can I add two urls’s in callback url ??


#2

This is not possible.


#3

Hi @andypiper So how should I implement this.
So when a user clicks a login button, and lets say he is on localhost:3000/auth/twitter , I want it to redirect to localhost:5000/auth/twitter/callback which is the backend server to get authorized with google.
Using localhost:5000/auth/twitter/callback in the CallbackURL, the browser still tries to reach localhost:3000/auth/twitter/callback and gives me an error.