1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24:01 +00:00

[PM-2014] fix: remove deprecated pattern

This commit is contained in:
Andreas Coroiu
2023-09-27 10:28:31 +02:00
parent aebca87f43
commit 0518470303
3 changed files with 8 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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,

View File

@@ -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<void>(undefined);