Function provideAuth0

  • Initialize the authentication system. Configuration can either be specified here, or by calling AuthClientConfig.set (perhaps from an APP_INITIALIZER factory function).

    Note: Should only be used as of Angular 15, and should not be added to a component's providers.

    Parameters

    • Optional config: AuthConfig

      The optional configuration for the SDK.

    Returns Provider[]

    Example

    bootstrapApplication(AppComponent, {
    providers: [
    provideAuth0(),
    ],
    });