OAuthApi
Home > @backstage/core-plugin-api
> OAuthApi
This API provides access to OAuth 2 credentials. It lets you request access tokens, which can be used to act on behalf of the user when talking to APIs.
Signature:
export type OAuthApi = {
getAccessToken(scope?: OAuthScope, options?: AuthRequestOptions): Promise<string>;
};
References: OAuthScope, AuthRequestOptions