react-native-msal
Advanced tools
Changelog
4.0.0-beta.6
acquireToken
, acquireTokenSilent
, and getAccount
may return Promise<undefined>
. This matches what the underlying native libraries return.msal_config.json
file that was previously required is no longer needed and is ignored. You can safely delete this file. All options are now configurable in the config object which is passed to the PublicClientApplication
constructorPublicClientApplication
constructor no longer takes a second init
boolean argument, and initialization must be done manually by calling the init
method:
-const pca = new PublicClientApplication(config, false)
+const pca = new PublicClientApplication(config) // No longer initializes client. You must do this manually 👇
try {
await pca.init();
} catch (error) {
console.log("problem in configuration/setup:", error)
}
build.gradle
(if you are using Expo this is done automatically for you):
allProjects {
repositories {
// ...
maven {
url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1"
}
}
}