Skip to content

bjartebore/react-native-msal-client

Repository files navigation

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

  });

About

A MSAL wrapper for react native (currently only iOS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published