microsoft-login-button-react
v1.0.1
Published
React button component for easy OAuth with Microsoft services on client side.
Downloads
5
Maintainers
Readme
microsoft-login-button-react
React button component for login with Microsoft services using OAuth.
Get started
- Install package:
yarn add microsoft-login-button-react
- Import and configure component:
import React from "react"; import MicrosoftLogin from "microsoft-login-button-react"; export default props => { const authHandler = (err, data) => { console.log(err, data) } return ( <MicrosoftLogin clientId={YOUR_CLIENT_ID} authCallback={authHandler} /> ) }