File tree 3 files changed +10
-1
lines changed
packages/react-native-app-auth
android/src/main/java/com/rnappauth
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1088,6 +1088,10 @@ private BrowserMatcher getBrowserAllowList(ReadableArray androidAllowCustomBrows
1088
1088
browserMatchers .add (VersionedBrowserMatcher .SAMSUNG_CUSTOM_TAB );
1089
1089
break ;
1090
1090
}
1091
+ case "edge" : {
1092
+ browserMatchers .add (VersionedBrowserMatcher .EDGE_CUSTOM_TAB );
1093
+ break ;
1094
+ }
1091
1095
}
1092
1096
}
1093
1097
return browserMatchers ;
Original file line number Diff line number Diff line change @@ -79,14 +79,15 @@ export type AuthConfiguration = BaseAuthConfiguration & {
79
79
usePKCE ?: boolean ;
80
80
warmAndPrefetchChrome ?: boolean ;
81
81
skipCodeExchange ?: boolean ;
82
- iosCustomBrowser ?: 'safari' | 'chrome' | 'opera' | 'firefox' ;
82
+ iosCustomBrowser ?: 'safari' | 'chrome' | 'opera' | 'firefox' | 'edge' ;
83
83
androidAllowCustomBrowsers ?: (
84
84
| 'chrome'
85
85
| 'chromeCustomTab'
86
86
| 'firefox'
87
87
| 'firefoxCustomTab'
88
88
| 'samsung'
89
89
| 'samsungCustomTab'
90
+ | 'edge'
90
91
) [ ] ;
91
92
androidTrustedWebActivity ?: boolean ;
92
93
iosPrefersEphemeralSession ?: boolean ;
Original file line number Diff line number Diff line change @@ -714,6 +714,10 @@ - (NSString*)getErrorCode: (NSError*) error defaultCode: (NSString *) defaultCod
714
714
@" firefox" :
715
715
^{
716
716
return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserFirefox ];
717
+ },
718
+ @" edge" :
719
+ ^{
720
+ return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserEdge ];
717
721
}
718
722
};
719
723
BrowserBlock browser = browsers[browserType];
You can’t perform that action at this time.
0 commit comments