digi-oauth
v0.0.5
Published
MS Auth login React compoenent
Downloads
2
Maintainers
Readme
Digi-OAuth
This library provides a minimal setup to get Login with Microsoft functionality.
About
The MSAL library for JavaScript enables client-side JavaScript applications to authenticate users using Azure AD work and school accounts (AAD) and Microsoft personal accounts (MSA). It also enables your app to get tokens to access Microsoft Cloud services such as Microsoft Graph. Check https://npm-digi-auth.dmlabs.in/?path=/docs/ms-auth-login--docs for documenatation.
Installation
npm i digi-oauth
Usage
import React from "react";
import { MsAuthButton } from "digi-oauth";
export default (props) => {
return (
<MsAuthButton
clientId={YOUR_CLIENT_ID}
redirectUri={REDIRECT_URI}
postLogoutRedirectUri={POST_LOGOUT_URI}
/>
);
};
Import this component to your login page and header of your page or where you want to show the logged in view.