Integrating with Shopify API

So building out a universal dashboard, and per the Shopify app requirements for API 0auth needs to happen before a user interacts with your UI. I was brainstorming ways to do this. Currently the flow is to direct users to a sign up page they can view dashboard and perform Shopify 0auth there. The platform isn't directed to solely Shopify users so havent given it much thought but was wondering what best path forward for this would be?

My current idea was to direct traffic from Shopify to a unathenticated page that on page load would, create anon account, perform Shopify 0auth, then save details to anon account, then a custom action to update user from anon account to account with email.

Would there be a better way to perform this? Current Shopify 0auth cloud function works by passing UID as state paramter in URI of 0auth link, then redirecting to cloud function. Any suggestions would be greatly appreciated!

5
1 reply