magento-2-social-login icon indicating copy to clipboard operation
magento-2-social-login copied to clipboard

User information not available in cache storage after account creation with facebook provider

Open nenes25 opened this issue 3 years ago • 3 comments

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

  1. Magento: vanilla 2.4.1-p1 ( tested on both CE and EE )
  2. PHP: 7.4
  3. MySQL: 5.7

Steps to reproduce

  1. Create a new account with facebook provider
  2. The page is refreshed after a success login

Expected result

  1. The customer fullname should be displayed and available in session. image image

Actual result

The session information for displaying the customer fullName are missing

  1. image

image

nenes25 avatar Jul 09 '21 14:07 nenes25

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

Victor-Mageplaza avatar Jul 12 '21 00:07 Victor-Mageplaza

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é

nenes25 avatar Jul 12 '21 09:07 nenes25

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

jriboux-advisa avatar Jul 22 '21 08:07 jriboux-advisa