We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

ravi_polepeddi
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.

https://shopify.dev/docs/api/storefront/2024-04/mutations/customeraccesstokencreate

 

 

Reply 1 (1)

tom_hammer
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