sync build tree from private myoffice

This commit is contained in:
myoffice-sync
2026-08-05 14:14:50 +00:00
parent 73b7dd8f51
commit eb475decaf
3 changed files with 26 additions and 8 deletions
@@ -58,9 +58,10 @@ export class ExternalLoginConfig {
}
static getAuth0Config() {
const auth0 = environment.externalLogins?.auth0;
return {
clientId: environment.externalLogins.auth0.clientId,
domain: environment.externalLogins.auth0.domain,
clientId: auth0?.clientId || 'unused',
domain: auth0?.domain || 'unused.auth0.com',
};
}
}
+1 -2
View File
@@ -33,7 +33,7 @@ export function storageFactory(): OAuthStorage {
declarations: [],
imports: [
CommonModule,
SocialLoginModule,
SocialLoginModule.initialize(ExternalLoginConfig.getSocialConfig()),
OAuthModule.forRoot(),
AuthModule.forRoot(ExternalLoginConfig.getAuth0Config()),
],
@@ -42,7 +42,6 @@ export function storageFactory(): OAuthStorage {
{ provide: AuthConfig, useValue: AuthCodeFlowConfig },
{ provide: OAuthModuleConfig, useValue: AuthModuleConfig },
{ provide: OAuthStorage, useFactory: storageFactory },
{ provide: 'SocialAuthServiceConfig', useValue: ExternalLoginConfig.getSocialConfig() },
RightSidebarService,
AuthGuard,
AuthService,