@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.cjs.js
CHANGED
|
@@ -16857,8 +16857,10 @@ function useCAMSMSALAuth(options) {
|
|
|
16857
16857
|
var listener_1 = function (event) {
|
|
16858
16858
|
if (event.source !== authWindow_1)
|
|
16859
16859
|
return;
|
|
16860
|
-
var
|
|
16861
|
-
|
|
16860
|
+
var allowedOrigins = options.allowedOrigins || [
|
|
16861
|
+
options.messageOrigin || new URL(options.mfaUrl || "").origin
|
|
16862
|
+
].filter(Boolean);
|
|
16863
|
+
if (allowedOrigins.length > 0 && !allowedOrigins.includes(event.origin))
|
|
16862
16864
|
return;
|
|
16863
16865
|
var tokenMsg = camsSdk.ProfileSchema.safeParse(event.data);
|
|
16864
16866
|
if (tokenMsg.success) {
|