Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Handling customer login

Handling customer login

Faelivrinx
Visitor
1 0 2

Hi all!

Description

I'm facing with problem how to detect a moment when customers are logging in with success. My application requires this kind of process, because it has to change the status of some external component like: "Ok, now you have deal with authenticated user. He's not anonymous anymore!"

I have to handle each success login status and get customer information, to generate some token inside my application, and then invoke javascript from client side (to update that component).  Function has to get that token (somehow) to properly invoke the function. This is the process diagram:

shopify-diagram-2.png

Problem

Currently the most problematic is login detection. Do you have any ideas how to get this kind of information inside custom application? I noticed that there is no any kind of webhook, or ready solution to handle this.

 

Thanks in advance! 

Replies 0 (0)