magento-2-social-login
magento-2-social-login copied to clipboard
User information not available in cache storage after account creation with facebook provider
When registering with facebook on the first login the customer name fullname is missing in cache storage On the second login it works, and on your demo too.
Preconditions
- Magento: vanilla 2.4.1-p1 ( tested on both CE and EE )
- PHP: 7.4
- MySQL: 5.7
Steps to reproduce
- Create a new account with facebook provider
- The page is refreshed after a success login
Expected result
- The customer fullname should be displayed and available in session.
Actual result
The session information for displaying the customer fullName are missing
Hi @nenes25 ,
I'm Victor from Mageplaza. I would like to answer your question as follow. You can change code at app/code/Mageplaza/SocialLogin/view/frontend/web/js/popup.js like this http://prntscr.com/1ae0d4r It is possible that after reloading the page to login the customer model is not reloading properly (actually I have had some local cases with or without problems).
Thank you! Best Regards, Victor
Hi @Victor-Mageplaza
Thanks for your update ! :smile: I've tried but unfortunately it changes nothing on my side. I've seen that this issue does not appears on your demo website with magento 2.4.2 i'll check if the magento update fix the issue too. Please let me know if you find something on how to solve it in another way.
Regards, Hervé
Hello @Victor-Mageplaza ,
The fix in popup.js "customerData.reload(true);" is not compatible with Magento Commerce 2.4.1 (at least). In order to work, the reload function needs an extra parameter to specify wich sections must be reloaded like this (see the screenshot here https://pasteboard.co/KcjQa1O.png ) : customerData.reload(['customer', 'cart']);
This works fine on Magento Commerce 2.4.1 . After account creation, the customer object is up to date in local storage.
Regards, Jonathan