@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.esm.js
CHANGED
|
@@ -97,6 +97,9 @@ function useCAMSAuth(options) {
|
|
|
97
97
|
var sessionManagerRef = useRef(null);
|
|
98
98
|
useEffect(function () {
|
|
99
99
|
var _a;
|
|
100
|
+
// Only initialize on client side
|
|
101
|
+
if (typeof window === 'undefined')
|
|
102
|
+
return;
|
|
100
103
|
(_a = sessionManagerRef.current) !== null && _a !== void 0 ? _a : (sessionManagerRef.current = new CAMSSessionManager(localStorage, options.storageKey || 'CAMS-SDK', {
|
|
101
104
|
onAuthSuccess: function (res) {
|
|
102
105
|
var _a;
|