Please include the following information in your post:
- Which SDK this is regarding: auth0-angular
- SDK Version: 1.2.0
- Platform Version: Angular 8.2.14
- Code Snippets/Error Messages/Supporting Details/Screenshots:
I am migrating my Angular app from using the auth0-spa-js module to the new auth0-angular module, but after following the quick start guide I’m getting the following error message in my browser’s console:
ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[InjectionToken auth0.client → AuthClientConfig]:
StaticInjectorError(Platform: core)[InjectionToken auth0.client → AuthClientConfig]:
NullInjectorError: No provider for AuthClientConfig!
NullInjectorError: StaticInjectorError(AppModule)[InjectionToken auth0.client → AuthClientConfig]:
StaticInjectorError(Platform: core)[InjectionToken auth0.client → AuthClientConfig]:
NullInjectorError: No provider for AuthClientConfig!
The quick start guide was extremely simple and I believe I’ve set it up correctly. Here is the code I added in app.module.ts:
imports: [
AppRoutingModule,
AuthModule.forRoot({
domain: “mydomain”,
clientId: “myclientid”
}),
BrowserAnimationsModule,