@nibssplc/cams-sdk-react 0.0.1-beta.48 → 0.0.1-beta.49
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.esm.js
CHANGED
|
@@ -16838,8 +16838,10 @@ function useCAMSMSALAuth(options) {
|
|
|
16838
16838
|
var listener_1 = function (event) {
|
|
16839
16839
|
if (event.source !== authWindow_1)
|
|
16840
16840
|
return;
|
|
16841
|
-
var
|
|
16842
|
-
|
|
16841
|
+
var allowedOrigins = options.allowedOrigins || [
|
|
16842
|
+
options.messageOrigin || new URL(options.mfaUrl || "").origin
|
|
16843
|
+
].filter(Boolean);
|
|
16844
|
+
if (allowedOrigins.length > 0 && !allowedOrigins.includes(event.origin))
|
|
16843
16845
|
return;
|
|
16844
16846
|
var tokenMsg = ProfileSchema.safeParse(event.data);
|
|
16845
16847
|
if (tokenMsg.success) {
|