diff --git a/apps/web/src/app/auth/core/core.module.ts b/apps/web/src/app/auth/core/core.module.ts index 7fdfa6f51b7..ea7654809e0 100644 --- a/apps/web/src/app/auth/core/core.module.ts +++ b/apps/web/src/app/auth/core/core.module.ts @@ -1,6 +1,11 @@ import { NgModule, Optional, SkipSelf } from "@angular/core"; -@NgModule({}) +import { WebauthnApiService } from "./services/webauthn/webauthn-api.service"; +import { WebauthnService } from "./services/webauthn/webauthn.service"; + +@NgModule({ + providers: [WebauthnService, WebauthnApiService], +}) export class CoreAuthModule { constructor(@Optional() @SkipSelf() parentModule?: CoreAuthModule) { if (parentModule) { diff --git a/apps/web/src/app/auth/core/services/webauthn/webauthn-api.service.ts b/apps/web/src/app/auth/core/services/webauthn/webauthn-api.service.ts index 4fab02a6261..d41ea33b692 100644 --- a/apps/web/src/app/auth/core/services/webauthn/webauthn-api.service.ts +++ b/apps/web/src/app/auth/core/services/webauthn/webauthn-api.service.ts @@ -5,13 +5,11 @@ import { UserVerificationService } from "@bitwarden/common/auth/abstractions/use import { ListResponse } from "@bitwarden/common/models/response/list.response"; import { Verification } from "@bitwarden/common/types/verification"; -import { CoreAuthModule } from "../../core.module"; - import { SaveCredentialRequest } from "./request/save-credential.request"; import { CredentialCreateOptionsResponse } from "./response/credential-create-options.response"; import { WebauthnCredentialResponse } from "./response/webauthn-credential.response"; -@Injectable({ providedIn: CoreAuthModule }) +@Injectable() export class WebauthnApiService { constructor( private apiService: ApiService, diff --git a/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts b/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts index 34a09db2af5..10e82b8acef 100644 --- a/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts +++ b/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts @@ -4,7 +4,6 @@ import { BehaviorSubject, filter, from, map, Observable, shareReplay, switchMap, import { LogService } from "@bitwarden/common/platform/abstractions/log.service"; import { Verification } from "@bitwarden/common/types/verification"; -import { CoreAuthModule } from "../../core.module"; import { CredentialCreateOptionsView } from "../../views/credential-create-options.view"; import { WebauthnCredentialView } from "../../views/webauth-credential.view"; @@ -12,7 +11,7 @@ import { SaveCredentialRequest } from "./request/save-credential.request"; import { WebauthnAttestationResponseRequest } from "./request/webauthn-attestation-response.request"; import { WebauthnApiService } from "./webauthn-api.service"; -@Injectable({ providedIn: CoreAuthModule }) +@Injectable() export class WebauthnService { private navigatorCredentials: CredentialsContainer; private _refresh$ = new BehaviorSubject(undefined);