@nibssplc/cams-sdk-react
Version:
React hooks and components for NIBSS CAMS SDK
17 lines (16 loc) • 776 B
TypeScript
import React from "react";
import { PublicClientApplication, Configuration } from "@azure/msal-browser";
import { Profile } from "@nibssplc/cams-sdk";
import { UseCAMSMSALAuthReturn, UseCAMSMSALAuthOptions } from "../hooks/useCAMSMSALAuth";
interface CAMSMSALContextValue extends UseCAMSMSALAuthReturn {
userProfile: Profile | null;
setUserProfile: (profile: Profile | null) => void;
}
export interface CAMSMSALProviderProps extends UseCAMSMSALAuthOptions {
children: React.ReactNode;
msalConfig: Configuration;
msalInstance?: PublicClientApplication;
}
export declare function CAMSMSALProvider(props: Readonly<CAMSMSALProviderProps>): import("react/jsx-runtime").JSX.Element;
export declare function useCAMSMSALContext(): CAMSMSALContextValue;
export {};