@dlarsson-se/react-msal
v0.1.0
Published
Functions for authentication with MS
Downloads
3
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