frontend/actions/index.js
/**
 * Fetches the Apple Login configuration from the service.
 * @returns {Function}
 */
Fetches the Apple Login configuration from the service.
@returns {Function}
Fetches the Apple Login configuration from the service . @returns { Function }
function fetchAppleConfig() {
  return async (dispatch) => {
    dispatch(requestAppleConfig());
    try {
      const config = await new PipelineRequest('shopgate.apple.getConfig')
        .setTrusted()
        .setHandleErrors(ERROR_HANDLE_SUPPRESS)
        .dispatch();
      dispatch(requestAppleConfigSuccess(config));
    } catch {
      dispatch(requestAppleConfigError());
    }
  };
}
function fetchAppleConfig ( ) { return async ( dispatch ) => { dispatch ( requestAppleConfig ( ) ) ; try { const config = await new PipelineRequest ( 'shopgate.apple.getConfig' ) . setTrusted ( ) . setHandleErrors ( ERROR_HANDLE_SUPPRESS ) . dispatch ( ) ; dispatch ( requestAppleConfigSuccess ( config ) ) ; } catch { dispatch ( requestAppleConfigError ( ) ) ; } } ; }
Fetches the Apple Login configuration from the service.
Fetches the Apple Login configuration from the service .