Skip to main content

PendingOAuthRequest

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

An pending auth request for a single auth provider. The request will remain in this pending state until either reject() or trigger() is called.

Signature:

export type PendingOAuthRequest = {
provider: AuthProviderInfo;
reject(): void;
trigger(): Promise<void>;
};

References: AuthProviderInfo

Remarks

Any new requests for the same provider are merged into the existing pending request, meaning there will only ever be a single pending request for a given provider.