PM-7392 - Remove logout reason from CLI as each logout call handles messaging on its own.
This commit is contained in:
parent
0788c354fb
commit
c700e05fd5
|
@ -13,7 +13,6 @@ 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";
|
||||
|
@ -258,8 +257,7 @@ export class Main {
|
|||
p = path.join(process.env.HOME, ".config/Bitwarden CLI");
|
||||
}
|
||||
|
||||
const logoutCallback = async (logoutReason: LogoutReason, userId?: UserId) =>
|
||||
await this.logout(logoutReason, userId);
|
||||
const logoutCallback = async () => await this.logout();
|
||||
|
||||
this.platformUtilsService = new CliPlatformUtilsService(ClientType.Cli, packageJson);
|
||||
this.logService = new ConsoleLogService(
|
||||
|
@ -736,7 +734,7 @@ export class Main {
|
|||
}
|
||||
}
|
||||
|
||||
async logout(logoutReason: LogoutReason, passedInUserId?: UserId) {
|
||||
async logout() {
|
||||
this.authService.logOut(() => {
|
||||
/* Do nothing */
|
||||
});
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as FormData from "form-data";
|
|||
import { HttpsProxyAgent } from "https-proxy-agent";
|
||||
import * as fe from "node-fetch";
|
||||
|
||||
import { LogoutReason } from "@bitwarden/auth/common";
|
||||
import { TokenService } from "@bitwarden/common/auth/abstractions/token.service";
|
||||
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||
|
@ -26,7 +25,7 @@ export class NodeApiService extends ApiService {
|
|||
stateService: StateService,
|
||||
refreshAccessTokenErrorCallback: () => Promise<void>,
|
||||
logService: LogService,
|
||||
logoutCallback: (logoutReason: LogoutReason) => Promise<void>,
|
||||
logoutCallback: () => Promise<void>,
|
||||
customUserAgent: string = null,
|
||||
) {
|
||||
super(
|
||||
|
|
Loading…
Reference in New Issue