@earnenterprise/react-msal
v0.1.4
Published
Functions for authentication with MS
Downloads
6
Readme
react-msal
Install
npm install --save react-msal
Usage
import * as React from 'react'
import { useReactMSAL } from 'react-msal'
class Example extends React.Component {
const reactMSAL = useReactMSAL({ config })
useEffect(() => {
console.log(reactMSAL.accessToken);
}, [reactMSAL.accessToken]);
render () {
return (
<Button onClick={reactMSAL.login} />
)
}
}
License
MIT © dlarssonse