INNER CODE UNIT · JavaScript
openAuth
proyecto26/react-native-inappbrowser · index.js:59
async function openAuth(
url: string,
redirectUrl: string,
options?: InAppBrowserOptions
): Promise<AuthSessionResult> {
if (authSessionIsNativelySupported()) {
return openAuthSessionAsync(url, redirectUrl, options);
} else {
return openAuthSessionPolyfillAsync(url, redirectUrl, options);
}
}
/**
* Dismisses the presented web browser.
*/
function close(): void {
RNInAppBrowser.close();
}