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

Topic summary

A developer is working with the Shopify Storefront API’s customerAccessTokenCreate mutation to generate access tokens for customers.

Core Question:
How to programmatically redirect a customer to a Shopify store URL while maintaining their logged-in state using the generated access token.

Alternative Approach Sought:
The developer is also asking if there’s a recommended method to automatically log in customers to a Shopify store page using their email and password credentials programmatically.

Current Status:
The question remains unanswered with no solutions or recommendations provided yet. The developer appears to be exploring authentication flow options between a custom application and Shopify’s storefront.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

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