-
Notifications
You must be signed in to change notification settings - Fork 64
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
Change config dynamically #129
Comments
You can bootstrap a few similar new providers instead of extending the built-in ones and choosing which config you want at runtime |
Sorry that I'm being dense, but how do I actually bootstrap the providers at runtime? All of the syntax examples basically have you pass in a config. |
You'll have to pass to the config at bootstrap time and then at runtime you choose which one you want using its name. I could probably add the ability to pass the full provider at runtime instead of just the name, it may even be better in terms of tree shaking (if I make it mandatory), but in the meantime, this is the only option. You could create a fork and add this ability (shouldn't be very hard) and I'll appreciate it if you create a pull request afterward. |
I'll give it a shot and see if I can figure it out. The use case for this is that within our app you can't know in advance of loading the app which providers will be available. The reason for that is that one site serves multiple different companies and basically pulls their logo and other information. If we could make our API call, get the data and then bootstrap the providers that would be amazing. Basically expose a Going to fork and give it a try but I'm a bit out of my depths when it comes to developing packages like this. Probably as good a time as any to learn, though. |
Good luck! |
in the new beta for angular 6 I've added |
@ronzeidman Does the updateProviders method still exist in version 10.0.1 of the library? I need to do something similar with Shopify and I can't find any method or way to update the authorizationEndpoint dynamically with the Shopify store domain. |
Hello. Thanks for making this package. I have a situation where I need to change the config because different companies can have different providers. Is there any way to set the config after the app has been bootstrapped?
Thank you!
Matt
The text was updated successfully, but these errors were encountered: