@nibssplc/cams-sdk-react 0.0.1-beta.80 → 0.0.1-beta.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +0 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useCallback, createContext, useContext, useMemo } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { CAMSSessionManager, isPopupWindow, CAMSMFAAuthenticator, Logger, CAMSError, CAMSErrorType, initializePopupAuth } from '@nibssplc/cams-sdk';
|
|
4
4
|
export * from '@nibssplc/cams-sdk';
|
|
5
5
|
import { useMsal, useAccount, MsalProvider } from '@azure/msal-react';
|
|
6
6
|
import { InteractionStatus, PublicClientApplication } from '@azure/msal-browser';
|
|
@@ -131,10 +131,6 @@ function useCAMSAuth(options) {
|
|
|
131
131
|
// Only initialize on client side
|
|
132
132
|
if (typeof window === "undefined")
|
|
133
133
|
return;
|
|
134
|
-
// Initialize popup auth handler if in popup
|
|
135
|
-
if (isPopupWindow()) {
|
|
136
|
-
initializePopupAuth();
|
|
137
|
-
}
|
|
138
134
|
(_a = sessionManagerRef.current) !== null && _a !== void 0 ? _a : (sessionManagerRef.current = new CAMSSessionManager(localStorage, options.storageKey || "CAMS-AUTH-SDK", {
|
|
139
135
|
onAuthSuccess: function (res) {
|
|
140
136
|
var _a;
|