@openg2p/registry-widgets 1.1.0-dev.6 → 1.1.0-dev.8

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
@@ -10669,7 +10669,7 @@ const IdAuthenticationWidget = ({ config, schemaData: propSchemaData }) => {
10669
10669
  setResolvedAuthUrl(null);
10670
10670
  }, [providerId, providerName]);
10671
10671
  const openAuthPopup = useCallback((authUrl) => {
10672
- if (authConfig?.useIframeOverlay !== false) {
10672
+ if (authConfig?.useIframeOverlay === true) {
10673
10673
  setOverlayUrl(authUrl);
10674
10674
  emitHostEvent({ type: 'overlay_opened' });
10675
10675
  return;
@@ -10720,9 +10720,7 @@ const IdAuthenticationWidget = ({ config, schemaData: propSchemaData }) => {
10720
10720
  provider_id: providerId,
10721
10721
  initiated_by_staff_id: initiatedByStaffId,
10722
10722
  };
10723
- const wrap = authConfig.wrapRequestPayload !== false;
10724
- const payloadKey = authConfig.requestPayloadKey || 'request_payload';
10725
- const requestParams = wrap ? { [payloadKey]: basePayload } : basePayload;
10723
+ const requestParams = basePayload;
10726
10724
  // eslint-disable-next-line no-console
10727
10725
  console.log('[IdAuthenticationWidget] authenticate_registrant params', requestParams);
10728
10726
  const resp = await dataSourceRequestHandler(authConfig.service, authConfig.authenticateEndpoint, authConfig.authenticateMethod || 'POST', requestParams);