1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Fix warning when attempting a double login in the cli (#468)

* Replace call to `getEntityType` with a static string

* Delete several unused `StateService` methods
This commit is contained in:
Addison Beck
2024-03-19 09:30:38 -05:00
committed by GitHub
parent 5ce3b01ff1
commit cc05bcb4a6
3 changed files with 1 additions and 33 deletions

View File

@@ -301,10 +301,9 @@ export class Program extends BaseProgram {
async exitIfAuthed() {
const authed = await this.stateService.getIsAuthenticated();
if (authed) {
const type = await this.stateService.getEntityType();
const id = await this.stateService.getEntityId();
this.processResponse(
Response.error("You are already logged in as " + type + "." + id + "."),
Response.error("You are already logged in as organization." + id + "."),
true,
);
}