-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
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
How to create multiple instance of Strategy? #77
Comments
This is the closest solution I found: jaredhanson/passport#50 . You must make sure that wherever you call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to add multiple callback config with same cliendId?
I have some code:
I want to register two instance 'GoogleStrategy' with two 'callbackURL' use for web and desktop app:
With each platform will have difference url for request authenticate:
We register callback from Google with each type 'google-web' and 'google-desktop':
But this code really not working because inside
Strategy
constructor, 'name' alway equal 'google'.I think I will custom 'name' is a input in Strategy constructor. Does that will destabilize the �passport and not working?
The text was updated successfully, but these errors were encountered: