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.

Shopify App - Issue with OAuth Authorization Code Not Received in Redirection URL

Shopify App - Issue with OAuth Authorization Code Not Received in Redirection URL

GueloSuperStar
Shopify Partner
1 0 0

Hello, 
I am currently developing a Shopify app and a SaaS

I have encountered an issue during the OAuth authentication process.

After a store owner initiates the installation of my app, they are redirected to my SaaS platform as intended.

However, upon redirection, I expect to receive an OAuth authorization code in the query parameters, which is necessary for me to obtain the permanent access token as per the OAuth flow.

The issue I'm facing is that within the redirection URL, I'm not receiving the 'code' parameter. Instead,

I only receive a 'token' parameter along with the 'shop' parameter.


Techno : I use Remix and Symfony

example : /subscribe?token=JWT_TOKEN&shop=xxxxx.myshopify.com

 

Other issue : 

 

Once the app is installed on a Shopify store, users are expected to be redirected to my SaaS platform, where they have the option to either sign up for a new account or log in if they already have one. The redirection is working fine after the initial app installation.

 

However, when a user tries to return to the app from their Shopify admin, they are redirected to the login page of my SaaS platform with no query parameters in the URL.

 

This is causing a significant user experience problem as it hinders the ability of store owners to seamlessly access the app's functionality if they didn't initially create an account on my SaaS platform. Without any parameters passed in the URL, my platform cannot identify the Shopify store associated with the request, preventing any meaningful interaction between the user's store and my SaaS application.


Thank you in advance for your help.

Replies 0 (0)