1.0.1 • Published 5 years ago

microsoft-login-button-react v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

microsoft-login-button-react

React button component for login with Microsoft services using OAuth.

Get started

  1. Install package:
    yarn add microsoft-login-button-react
  2. 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}
            />
        )
    }

License

MIT