# Multiple Auth0 Client Configurations in a single Angular project

**URL:** <https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 10, 2023, 10:52am UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606 "2023-05-10T10:52:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.williams1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.williams1/32/47088_2.png) [@james.williams1](https://community.auth0.com/u/james.williams1)\
**Post date:** [May 10, 2023, 10:52am UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606/1 "2023-05-10T10:52:51Z")

</div>

I’m trying to use multiple auth0 applications in a single Angular project. From the [auth0-angular](https://github.com/auth0/auth0-angular) README.md:

> Instead of using `AuthModule.forRoot` to specify auth configuration, you can provide a factory function using `APP_INITIALIZER` to load your config from an external source before the auth module is loaded, and provide your configuration using `AuthClientConfig.set`.
> 
> The configuration will only be used initially when the SDK is instantiated. Any changes made to the configuration at a later moment in time will have no effect on the default options used when calling the SDK’s methods. This is also the reason why the dynamic configuration should be set using an `APP_INITIALIZER`, because doing so ensures the configuration is available prior to instantiating the SDK.

I would like to create a single Angular project that allows for two different types of user to login, each through a different auth0 application that presents a different login page. This would seem to require the ability to dynamically change the AuthClient configuration, rather than only being able to set the configuration once with no way to change it further.

Is there a way to achieve this?

---

<div class="post-metadata">

**Author:** ![d1ggity](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/d1ggity/32/66565_2.png) [@d1ggity](https://community.auth0.com/u/d1ggity)\
**Post date:** [December 12, 2024, 2:53pm UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606/2 "2024-12-12T14:53:22Z")

</div>

bump - also having this problem :\

---

<div class="post-metadata">

**Author:** ![janvi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janvi/32/62504_2.png) [@janvi](https://community.auth0.com/u/janvi)\
**Post date:** [December 12, 2024, 4:55pm UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606/3 "2024-12-12T16:55:42Z")

</div>

me also have same issue

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 24, 2025, 3:56pm UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606/5 "2025-03-24T15:56:01Z")

</div>

Hi @james.williams1,

Welcome to the Auth0 Community!

I don’t think the SDK was designed with two different simultaneous configs in mind. You can try multiple Auth0ConfigFactories for the authentication provider.

But you can give more details about what the structure of your application is and where would two AuthClients come in use and we can maybe find a solution.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 7, 2025, 3:56pm UTC](https://community.auth0.com/t/multiple-auth0-client-configurations-in-a-single-angular-project/106606/6 "2025-04-07T15:56:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
