Skip to content

APP_INITIALIZER is deprecated #672

@meet-ben

Description

@meet-ben

Checklist

Description

As seen per documenation:

providers: [
    {
      provide: APP_INITIALIZER,
      useFactory: configInitializer, // <- pass your initializer function here
      deps: [HttpBackend, AuthClientConfig],
      multi: true,
    },
  ],

This is no longer valid.

Also, instead of AuthModule.forRoot it would be nice if we could use something like withAuth0(...)

Reproduction

Just use the way of the documentation

Additional context

No response

auth0-angular version

2.2.3

Angular version

21

Which browsers have you tested in?

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis adds, fixes or improves documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions