ronzeidman / ng2-ui-auth

an angular2 repository for authentication based on angular1's satellizer
MIT License
206 stars 64 forks source link

Dynamically Inject Variables OAuth Providers? #140

Closed mrjasonroy closed 6 years ago

mrjasonroy commented 6 years ago

In version 6, since a custom class was used I could inject a service to get settings for the API values and set the providers in "forRoot".

Now that you are not using a class, any idea on the best way to do this?

ronzeidman commented 6 years ago

You can use the injection token CONFIG_OPTIONS