fix: update getCredentials in CatalogImportClient; update API reports
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user