PM-7392 - More expired to logoutReason replacements

This commit is contained in:
Jared Snider 2024-05-08 17:29:50 -04:00
parent 7aae92e78e
commit 6f5439b959
No known key found for this signature in database
GPG Key ID: A149DDD612516286
1 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ import {
PinCryptoService, PinCryptoService,
PinCryptoServiceAbstraction, PinCryptoServiceAbstraction,
UserDecryptionOptionsService, UserDecryptionOptionsService,
LogoutReason,
} from "@bitwarden/auth/common"; } from "@bitwarden/auth/common";
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service"; import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service";
import { EventUploadService as EventUploadServiceAbstraction } from "@bitwarden/common/abstractions/event/event-upload.service"; import { EventUploadService as EventUploadServiceAbstraction } from "@bitwarden/common/abstractions/event/event-upload.service";
@ -396,7 +397,7 @@ export class Main {
throw new Error("Refresh Access token error"); throw new Error("Refresh Access token error");
}, },
this.logService, this.logService,
async (expired: boolean) => await this.logout(), async (logoutReason: LogoutReason) => await this.logout(),
customUserAgent, customUserAgent,
); );
@ -458,7 +459,7 @@ export class Main {
this.logService, this.logService,
this.organizationService, this.organizationService,
this.keyGenerationService, this.keyGenerationService,
async (expired: boolean) => await this.logout(), async (logoutReason: LogoutReason) => await this.logout(),
this.stateProvider, this.stateProvider,
); );
@ -651,7 +652,7 @@ export class Main {
this.sendApiService, this.sendApiService,
this.userDecryptionOptionsService, this.userDecryptionOptionsService,
this.avatarService, this.avatarService,
async (expired: boolean) => await this.logout(), async (logoutReason: LogoutReason) => await this.logout(),
this.billingAccountProfileStateService, this.billingAccountProfileStateService,
this.tokenService, this.tokenService,
); );