@nibssplc/cams-sdk-react 0.0.1-beta.11 → 0.0.1-beta.13
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 +3 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
var sessionManagerRef = React__default.useRef(null);
|
|
118
118
|
React__default.useEffect(function () {
|
|
119
119
|
var _a;
|
|
120
|
+
// Only initialize on client side
|
|
121
|
+
if (typeof window === 'undefined')
|
|
122
|
+
return;
|
|
120
123
|
(_a = sessionManagerRef.current) !== null && _a !== void 0 ? _a : (sessionManagerRef.current = new camsSdk.CAMSSessionManager(localStorage, options.storageKey || 'CAMS-SDK', {
|
|
121
124
|
onAuthSuccess: function (res) {
|
|
122
125
|
var _a;
|