diff --git a/packages/react-native-app-auth/android/src/main/java/com/rnappauth/RNAppAuthModule.java b/packages/react-native-app-auth/android/src/main/java/com/rnappauth/RNAppAuthModule.java index e68389a4..7abf416a 100644 --- a/packages/react-native-app-auth/android/src/main/java/com/rnappauth/RNAppAuthModule.java +++ b/packages/react-native-app-auth/android/src/main/java/com/rnappauth/RNAppAuthModule.java @@ -1088,6 +1088,10 @@ private BrowserMatcher getBrowserAllowList(ReadableArray androidAllowCustomBrows browserMatchers.add(VersionedBrowserMatcher.SAMSUNG_CUSTOM_TAB); break; } + case "edge": { + browserMatchers.add(VersionedBrowserMatcher.EDGE_CUSTOM_TAB); + break; + } } } return browserMatchers; diff --git a/packages/react-native-app-auth/index.d.ts b/packages/react-native-app-auth/index.d.ts index 0c59626f..00b423ad 100644 --- a/packages/react-native-app-auth/index.d.ts +++ b/packages/react-native-app-auth/index.d.ts @@ -79,7 +79,7 @@ export type AuthConfiguration = BaseAuthConfiguration & { usePKCE?: boolean; warmAndPrefetchChrome?: boolean; skipCodeExchange?: boolean; - iosCustomBrowser?: 'safari' | 'chrome' | 'opera' | 'firefox'; + iosCustomBrowser?: 'safari' | 'chrome' | 'opera' | 'firefox'| 'edge'; androidAllowCustomBrowsers?: ( | 'chrome' | 'chromeCustomTab' @@ -87,6 +87,7 @@ export type AuthConfiguration = BaseAuthConfiguration & { | 'firefoxCustomTab' | 'samsung' | 'samsungCustomTab' + | 'edge' )[]; androidTrustedWebActivity?: boolean; iosPrefersEphemeralSession?: boolean; diff --git a/packages/react-native-app-auth/ios/RNAppAuth.m b/packages/react-native-app-auth/ios/RNAppAuth.m index 938c045c..dadc5c10 100644 --- a/packages/react-native-app-auth/ios/RNAppAuth.m +++ b/packages/react-native-app-auth/ios/RNAppAuth.m @@ -714,6 +714,10 @@ - (NSString*)getErrorCode: (NSError*) error defaultCode: (NSString *) defaultCod @"firefox": ^{ return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserFirefox]; + }, + @"edge": + ^{ + return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserEdge]; } }; BrowserBlock browser = browsers[browserType];