fix: update getCredentials in CatalogImportClient; update API reports

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2024-06-06 14:34:59 +02:00
parent bad9449e3d
commit 64e9b71c63
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ export class ScmAuth implements ScmAuthApi {
},
): ScmAuth;
getCredentials(options: ScmAuthTokenOptions): Promise<ScmAuthTokenResponse>;
isUrlSupported(url: URL): boolean;
isHostSupported(host: string): boolean;
static merge(...providers: ScmAuth[]): ScmAuthApi;
}
@@ -93,7 +93,7 @@ export interface ScmAuthTokenOptions extends AuthRequestOptions {
gitlab?: string[];
};
};
url: string;
host: string;
}
// @public
@@ -260,7 +260,7 @@ the component will become available.\n\nFor more information, read an \
} = options;
const { token } = await this.scmAuthApi.getCredentials({
url: repositoryUrl,
host: new URL(repositoryUrl).host,
additionalScope: {
repoWrite: true,
},