Redirecting customer to shopify store after logging in customer using Shopify Storefront API

Shopify Partner
2 0 0

Using the below link, I'm able to generate an access token for a customer. I want to check if its possible to redirect the customer to a shopify store url by passing the access token to indicate the customer is logged in, programmatically.

(or) is there a recommended way of doing this, where given the customer details i.e., email and password details of their Shopify account, they can be logged in programmatically and redirected to a shopify store page.



Reply 1 (1)

Shopify Staff
5 0 0

Hi @ravi_polepeddi because Flow operates asynchronously we're probably not the right solution for real-time, user-facing operations like logging in a customer and redirecting them. This use case might be better addressed via a custom app