Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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)