Revert "feat: new App install flow (#11975)" (#14540)

This commit is contained in:
Erik
2024-04-11 17:06:17 -03:00
committed by GitHub
parent ac77fe360d
commit 5071e6566f
146 changed files with 698 additions and 2151 deletions
@@ -55,11 +55,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
await createOAuthAppCredential({ appId: appConfig.slug, type: appConfig.type }, tokenInfo.data, req);
const state = decodeOAuthState(req);
if (state?.appOnboardingRedirectUrl && state.appOnboardingRedirectUrl !== "") {
return res.redirect(state.appOnboardingRedirectUrl);
}
res.redirect(
getSafeRedirectUrl(state?.returnTo) ??
getInstalledAppPath({ variant: appConfig.variant, slug: appConfig.slug })
+1 -2
View File
@@ -13,6 +13,5 @@
"isTemplate": false,
"__createdUsingCli": true,
"__template": "basic",
"scope": "ZohoBigin.modules.events.ALL,ZohoBigin.modules.contacts.ALL",
"isOAuth": true
"scope": "ZohoBigin.modules.events.ALL,ZohoBigin.modules.contacts.ALL"
}