Using the Rest API on front-end

Highlighted
New Member
18 0 0

Hello Shopify team! 

 

I need to restrict some customers to reset their password by customer tag, for example, if a customer has the tag "customer-reset-password-disable" this user must receive this message "You're not available to change your password". 

 

To complete this task, I'm thinking of re-building the "Forgot your password?" form and creating a javascript function that gets the customer by email and check if the tag mentioned above exists. My question is, how can I use the Rest API on front-end and protect my credentials/token? 

 

I'm just trying to find a safe/efficient way to get these informations.

 

Thank you! ;) 

0 Likes