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,
PinCryptoServiceAbstraction,
UserDecryptionOptionsService,
LogoutReason,
} from "@bitwarden/auth/common";
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.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");
},
this.logService,
async (expired: boolean) => await this.logout(),
async (logoutReason: LogoutReason) => await this.logout(),
customUserAgent,
);
@ -458,7 +459,7 @@ export class Main {
this.logService,
this.organizationService,
this.keyGenerationService,
async (expired: boolean) => await this.logout(),
async (logoutReason: LogoutReason) => await this.logout(),
this.stateProvider,
);
@ -651,7 +652,7 @@ export class Main {
this.sendApiService,
this.userDecryptionOptionsService,
this.avatarService,
async (expired: boolean) => await this.logout(),
async (logoutReason: LogoutReason) => await this.logout(),
this.billingAccountProfileStateService,
this.tokenService,
);