ScmAuth.forAuthApi()
Home > @backstage/integration-react > ScmAuth > forAuthApi
Creates a general purpose ScmAuth instance with a custom scope mapping.
Signature:
static forAuthApi(authApi: OAuthApi, options: {
host: string;
scopeMapping: {
default: string[];
repoWrite: string[];
};
}): ScmAuth;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
authApi | ||
|
options |
{ host: string; scopeMapping: { default: string[]; repoWrite: string[]; }; } |