INNER CODE UNIT · JavaScript
openAuthSessionAsync
proyecto26/react-native-inappbrowser · utils.js:125
export async function openAuthSessionAsync(
url: string,
redirectUrl: string,
options?: InAppBrowserOptions = {
ephemeralWebSession: false,
}
): Promise<AuthSessionResult> {
return RNInAppBrowser.openAuth(url, redirectUrl, options);
}
export async function openAuthSessionPolyfillAsync(
startUrl: string,
returnUrl: string,
options?: InAppBrowserOptions
): Promise<AuthSessionResult> {
invariant(
!_redirectHandler,
'InAppBrowser.openAuth is in a bad state. _redirectHandler is defined when it should not be.'