webext-launch-web-auth-flow
Version:
A launchWebAuthFlow polyfill using browser popup
13 lines (9 loc) • 451 B
TypeScript
type WebAuthFlowOptions = import('webextension-polyfill').Identity.LaunchWebAuthFlowDetailsType;
type WindowOptions = import('webextension-polyfill').Windows.CreateCreateDataType
interface WebAuthFlowPolyfillOptions extends WebAuthFlowOptions {
redirect_uri: string,
alwaysUseTab?: boolean,
windowOptions?: WindowOptions,
}
declare function launchWebAuthFlow(options: WebAuthFlowPolyfillOptions): Promise<string>;
export = launchWebAuthFlow;