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

Commit

Permalink
fix: default broker_redirect_uri_registered to false
Browse files Browse the repository at this point in the history
  • Loading branch information
josmithua committed Oct 28, 2021
1 parent 3b63320 commit 2c87f0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/src/main/java/com/reactnativemsal/RNMSALModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public void createPublicClientApplication(ReadableMap params, Promise promise) {
// Account mode. Required to be MULTIPLE for this library
msalConfigJsonObj.put("account_mode", "MULTIPLE");

// If broker_redirect_uri_registered is not provided in androidConfigOptions,
// default it to false
if (!msalConfigJsonObj.has("broker_redirect_uri_registered")) {
msalConfigJsonObj.put("broker_redirect_uri_registered", false);
}

ReadableMap auth = params.getMap("auth");

// Authority
Expand Down

0 comments on commit 2c87f0b

Please sign in to comment.