UNPKG

@shane32/msoauth

Version:

A React library for Azure AD authentication with PKCE (Proof Key for Code Exchange) flow support. This library provides a secure and easy-to-use solution for implementing Azure AD authentication in React applications, with support for both API and Microso

9 lines (8 loc) 425 B
import { createContext } from "react"; /** * The AuthContext is a React context that provides the AuthManager instance to the rest of the app. * The AuthManager instance should be a stable instance that is created once and passed down through the component tree. * The wrapper object is recreated on each auth state change to trigger context updates. */ var AuthContext = createContext(null); export default AuthContext;