0.0.5 • Published 12 months ago

digi-oauth v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

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.

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

1 year ago

0.0.0

1 year ago