React Native Bindings for the Microsoft MSAL library
npm install react-native-msal-clientThis is a simple wrapper around Microsofts MSAL library. it currently only supports iOS
* React Native (tested on 0.55)
* Cocoapods
``sh`
yarn add react-native-msal-client
Install MSAL with cocoapods
Add the following to the Podfile and run `pod install
`ruby`
pod 'MSAL', '0.4.2'
`js
import MsalClient from 'react-native-msal-client';
const authClient = MsalClient('https://login.microsoftonline.com/common')
const clientId = '1ee9299a-9936-4aa9-92c5-b5602ee938d9';
const redirectUri = msal${clientId}://auth;
const scopes = ['email'];
const extraQueryParms = '';
authClient.acquireTokenAsync(clientId, scopes, redirectUri, '')
.then((data)=> {
}).catch((err) => {
});
``