Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit 2c87f0b

Browse files
committed
fix: default broker_redirect_uri_registered to false
1 parent 3b63320 commit 2c87f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/main/java/com/reactnativemsal/RNMSALModule.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public void createPublicClientApplication(ReadableMap params, Promise promise) {
8181
// Account mode. Required to be MULTIPLE for this library
8282
msalConfigJsonObj.put("account_mode", "MULTIPLE");
8383

84+
// If broker_redirect_uri_registered is not provided in androidConfigOptions,
85+
// default it to false
86+
if (!msalConfigJsonObj.has("broker_redirect_uri_registered")) {
87+
msalConfigJsonObj.put("broker_redirect_uri_registered", false);
88+
}
89+
8490
ReadableMap auth = params.getMap("auth");
8591

8692
// Authority

0 commit comments

Comments
 (0)