react-native-msal-client

0.4.3 • Public • Published

react-native-msal-client

This is a simple wrapper around Microsofts MSAL library. it currently only supports iOS

Requirements

Installation

yarn add react-native-msal-client

Install MSAL with cocoapods

Add the following to the Podfile and run ```pod install``

pod 'MSAL', '0.4.2'

Usage

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) => {
 
  });

Package Sidebar

Install

npm i react-native-msal-client

Weekly Downloads

1

Version

0.4.3

License

MIT

Unpacked Size

50.1 kB

Total Files

39

Last publish

Collaborators

  • bjarte.bore