Skip to content

Commit db6015b

Browse files
committed
clean
1 parent d5c4b34 commit db6015b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/api/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ interface ConnectionSettings {
3939
pathPrefix: string;
4040
ns: string;
4141
authorization: Authorization;
42-
password?: string;
4342
docker: boolean;
4443
dockerService?: string;
4544
}
@@ -314,7 +313,7 @@ export class AtelierAPI {
314313
headers?: any,
315314
options?: any
316315
): Promise<any> {
317-
const { active, apiVersion, host, port, password, https } = this.config;
316+
const { active, apiVersion, host, port, https, authorization } = this.config;
318317
if (!active || !port || !host) {
319318
return Promise.reject();
320319
}
@@ -445,7 +444,7 @@ export class AtelierAPI {
445444
if (this.wsOrFile && !checkingConnection) {
446445
setTimeout(() => {
447446
checkConnection(
448-
password ? true : false,
447+
authorization.resolved(),
449448
typeof this.wsOrFile === "object" ? this.wsOrFile : undefined,
450449
true
451450
);

0 commit comments

Comments
 (0)