sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

No Provider for AuthServiceConfig #2

Closed sqlsolver closed 4 months ago

sqlsolver commented 6 years ago

In Chrome Console:

core.js:1427 ERROR Error: Uncaught (in promise): Error: StaticInjectorError[AuthServiceConfig]: 
  StaticInjectorError[AuthServiceConfig]: 
    NullInjectorError: No provider for AuthServiceConfig!
Error: StaticInjectorError[AuthServiceConfig]: 
  StaticInjectorError[AuthServiceConfig]: 
    NullInjectorError: No provider for AuthServiceConfig!

after following tutorial. You are added as a collaborator on the repo if you want to test example.

softspoiler commented 6 years ago

@sqlsolver Did you added the AuthServiceConfig to providers in your main module? providers: [ { provide: AuthServiceConfig, useFactory: getAuthServiceConfigs } ],

sabyasachibiswal commented 4 months ago

@softspoiler Thanks