|
|
@@ -86,11 +86,12 @@ See `.env.example` files for configuration details.
|
|
|
|
|
|
**EntryPoint (HTTPS required):**
|
|
|
```
|
|
|
-https://shopcall.ai/integrations?sr_install={installation_id}
|
|
|
+https://shopcall.ai/integrations
|
|
|
```
|
|
|
- This is where users land after OAuth installation
|
|
|
-- Must validate HMAC on entry
|
|
|
-- Displays integration success/configuration page
|
|
|
+- ShopRenter will call this URL with authentication parameters: `shopname`, `code`, `timestamp`, `hmac`, `app_url`
|
|
|
+- Our backend redirects to `app_url` (provided by ShopRenter) with `sr_install` parameter
|
|
|
+- Frontend displays integration success/configuration page
|
|
|
|
|
|
**RedirectUri (HTTPS required):**
|
|
|
```
|
|
|
@@ -581,7 +582,7 @@ const config = {
|
|
|
|
|
|
// Production endpoints
|
|
|
redirectUri: 'https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/oauth-shoprenter-callback',
|
|
|
- entryPoint: 'https://shopcall.ai/integrations?sr_install={installation_id}',
|
|
|
+ entryPoint: 'https://shopcall.ai/integrations',
|
|
|
uninstallUri: 'https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/webhook-shoprenter-uninstall',
|
|
|
|
|
|
// Required scopes
|