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.

Re: Auth process with GraphQL

Solved

Auth process with GraphQL

francominds
Tourist
6 0 2

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!

Accepted Solution (1)

hassain
Shopify Staff (Retired)
624 104 189

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.

View solution in original post

Reply 1 (1)

hassain
Shopify Staff (Retired)
624 104 189

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.