Hi!
We know it’s been some time since this thread was opened, but if this is still actual, you may check a Shopify app that covers Discourse and Shopify login integration: Discoursify – Discourse login - Seamless login Integration for Discourse community | Shopify App Store