How to Login or initiate customer session after Social Login in Shopify

时光怂恿深爱的人放手 提交于 2020-01-25 11:58:05

问题


I want to facilitate customer to login my Shopify site using their social media accounts.

But I am not really sure how can I start their session after they successfully pass oAuth with their social accounts.

Once they pass the oAuth process I will create customer using Admin API of shopify. but after successfully created customers how can I logged In them.

there is something I might be missing. because there are lots off social login apps available on marketplace.


回答1:


You have to create customer with random password in shopify store using admin api.

After that you need to login manually by submitting shopify customer login form with the created customer email/password.

This is the only way and everyone is following this way.

Only shopify plus merchants can use multipass option which is really awesome.



来源:https://stackoverflow.com/questions/58552625/how-to-login-or-initiate-customer-session-after-social-login-in-shopify

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!