@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
17 lines (16 loc) • 714 B
TypeScript
import AuthManager from "./AuthManager";
/**
* Wrapper object that contains the AuthManager instance.
* A new wrapper object is created each time the auth state changes,
* triggering context updates across the app.
*/
export interface AuthContextValue {
authManager: AuthManager;
}
/**
* 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.
*/
declare const AuthContext: import("react").Context<AuthContextValue | null>;
export default AuthContext;