Skip to main content
Version: Next

OAuthRequesterOptions

Home > @backstage/core-plugin-api > OAuthRequesterOptions

Describes how to handle auth requests. Both how to show them to the user, and what to do when the user accesses the auth request.

Signature:

export type OAuthRequesterOptions<TOAuthResponse> = {
provider: AuthProviderInfo;
onAuthRequest(scopes: Set<string>): Promise<TOAuthResponse>;
};

References: AuthProviderInfo