Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dlarsson-se/react-msal

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlarsson-se/react-msal

Functions for authentication with MS

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

react-msal

NPM JavaScript Style Guide

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

Keywords

msal

FAQs

Package last updated on 27 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts