We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9498a68 commit 0fa4919Copy full SHA for 0fa4919
packages/rtn-web-browser/src/apis/openAuthSessionAsync.ts
@@ -37,14 +37,16 @@ export const openAuthSessionAsync = async (
37
if (Platform.OS === 'android') {
38
try {
39
const isChromebookRes = await isChromebook();
40
- if (isChromebookRes) {
41
- return openAuthSessionChromeOs(httpsUrl, redirectUrls);
+ if (!isChromebookRes) {
+ // If it is not a Chromebook, it probably supports custom tabs
42
+ return await openAuthSessionAndroid(httpsUrl, redirectUrls);
43
}
44
} catch {
45
// ignore and fallback to android
46
47
- return openAuthSessionAndroid(httpsUrl, redirectUrls);
48
+ // The ChromeOS way without custom tabs works everywhere
49
+ return openAuthSessionChromeOs(httpsUrl, redirectUrls);
50
51
};
52
0 commit comments