Multipass link

Multipass link

dgrigg
Shopify Partner
4 0 0

I have setup a store to use the Multipass. The token and customerAccess token are getting generated and appear to be valid. When I use the customerAccessTokenCreateWithMultipass graphql mutation https://shopify.dev/docs/api/storefront/2024-07/mutations/customerAccessTokenCreateWithMultipass and then run a query to search for the customer using the returned access token everything appears to be working. I can also see the created customers in the Shopify Customer list.

 

Where it breaks down is when I redirect the browser to (using these directions https://shopify.dev/docs/api/multipass#step-6-redirect-your-customer-to-your-shopify-store)

 
I'm running this locally using Hydrogen but the redirect_uri should be 'http://localhost:3000/account/authorize. What am I doing wrong? Is this because the store is currently password protected? I have tried both https://shopify.com/{store number id} and https://{store uuid}.myshopify.com as the {shopifyStore} value . Using the {store number id} gives a blank screen. Using the {store uuid} link gives me a 422 Invalid multipass request. 
 
If I have received the customerAccessToken from the graphql, do I need to redirect the user to the multipass url?
 
Replies 0 (0)