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