<?xml version="1.0"?>
<!--
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_CustomerApproval
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Customer\Model\AccountManagement">
        <plugin name="mpcustomerapproval_customer_authenticated" type="Mageplaza\CustomerApproval\Plugin\CustomerAuthenticated" sortOrder="1"/>
    </type>
    <type name="Mageplaza\SocialLogin\Controller\Social\Login">
        <plugin name="mpcustomerapproval_socialogin_approval" type="Mageplaza\CustomerApproval\Plugin\SocialLogin\Login" sortOrder="1"/>
    </type>

    <!-- fixed error social login error -->
    <type name="Magento\Tax\Observer\CustomerLoggedInObserver">
        <plugin name="prevent_handle_customer_login" type="Mageplaza\CustomerApproval\Plugin\Magento\Tax\CustomerLoggedInObserver" sortOrder="1"/>
    </type>
    <type name="Mageplaza\SocialLogin\Controller\Social\AbstractSocial">
        <plugin name="mp_socical_login_after_login" type="Mageplaza\CustomerApproval\Plugin\SocialLogin\AbstractSocial" sortOrder="1"/>
    </type>
</config>
