A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Greetings!
So, I'm building this public app that's going to make product sync among other things. I'm using GraphQL in our back end and I was wondering how to go through the auth process. What I mean is, I know how the process goes as it's stated here https://shopify.dev/tutorials/authenticate-with-oauth, how should I do callback part?
If I use Express, simply mounting a route for the callback would be enough to handle the logic. But how to do it with GraphQL endpoint? Maybe I should handle that with Express and the rest with GraphQL?
BTW, I'm using MERNG stack and the auth process is all manual (not using shopify-express plugin just to name one).
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Hey @francominds ,
Currently speaking, Shopify's OAuth Flow for public apps is only available through REST. So you would need to handle this process with Express JS (unless you were planning to use a library that handles the OAuth flow for you, like koa-shopify-auth or shopify_app gem), and the rest with GraphQL
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey @francominds ,
Currently speaking, Shopify's OAuth Flow for public apps is only available through REST. So you would need to handle this process with Express JS (unless you were planning to use a library that handles the OAuth flow for you, like koa-shopify-auth or shopify_app gem), and the rest with GraphQL
To learn more visit the Shopify Help Center or the Community Blog.