@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
11 lines (10 loc) • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("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 = (0, react_1.createContext)(null);
exports.default = AuthContext;