PM-7392 - More expired to logoutReason replacements
This commit is contained in:
parent
7aae92e78e
commit
6f5439b959
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue