App reviews, troubleshooting, and recommendations
Hi.
I'm new on developing Shopify Custom App.
Route::get('/api/auth', function (Request $request) { $shop = Utils::sanitizeShopDomain($request->query('shop')); // Delete any previously created OAuth sessions that were not completed (don't have an access token) Session::where('shop', $shop)->where('access_token', null)->delete(); return AuthRedirection::redirect($request); }); Route::get('/api/auth/callback', function (Request $request) { $session = OAuth::callback( $request->cookie(), $request->query(), ['App\Lib\CookieHandler', 'saveShopifyCookie'], ); $host = $request->query('host'); $shop = Utils::sanitizeShopDomain($request->query('shop')); $response = Registry::register('/api/webhooks', Topics::APP_UNINSTALLED, $shop, $session->getAccessToken()); if ($response->isSuccess()) { Log::debug("Registered APP_UNINSTALLED webhook for shop $shop"); } else { Log::error( "Failed to register APP_UNINSTALLED webhook for shop $shop with response body: " . print_r($response->getBody(), true) ); } $redirectUrl = Utils::getEmbeddedAppUrl($host); if (Config::get('shopify.billing.required')) { list($hasPayment, $confirmationUrl) = EnsureBilling::check($session, Config::get('shopify.billing')); if (!$hasPayment) { $redirectUrl = $confirmationUrl; } } return redirect($redirectUrl); });But I have no idea how to call this route.
Can anyone let me know how to authenticate or show me the explanation or sample?
Thanks in advance.
I could solve this issue by myself.
I updated the application URL with /api/auth from the dashboard and installed the application then this url was called and authenticated.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025