Skip to main content

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

ParameterTypeDescription
authApiOAuthApi
options{ host: string; scopeMapping: { default: string[]; repoWrite: string[]; }; }

Returns:

ScmAuth