microsoft-login-button-react

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i microsoft-login-button-react

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

25.9 kB

Total Files

11

Last publish

Collaborators

  • adithyanr