Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
reload page after org link
Maidul Islam216f3a0d1b52
diff --git a/frontend/src/pages/api/secret-scanning/linkGitAppInstallationWithOrganization.ts b/frontend/src/pages/api/secret-scanning/linkGitAppInstallationWithOrganization.tsindex 5a5e6051a1..fa841d9c58 100644--- a/frontend/src/pages/api/secret-scanning/linkGitAppInstallationWithOrganization.ts+++ b/frontend/src/pages/api/secret-scanning/linkGitAppInstallationWithOrganization.ts@@ -16,7 +16,7 @@ const linkGitAppInstallationWithOrganization = (installationId: string, sessionI})}).then(async (res) => {if (res && res.status === 200) {- return res.json();+ return true}console.log("Failed to link installation to organization");return undefined;diff --git a/frontend/src/pages/org/[id]/secret-scanning/index.tsx b/frontend/src/pages/org/[id]/secret-scanning/index.tsxindex adf632d1e4..e0f98243a4 100644--- a/frontend/src/pages/org/[id]/secret-scanning/index.tsx+++ b/frontend/src/pages/org/[id]/secret-scanning/index.tsx@@ -18,7 +18,11 @@ export default function SecretScanning() {const linkInstallation = async () => {if (typeof queryParams.state === "string" && typeof queryParams.installation_id === "string"){try {- await linkGitAppInstallationWithOrganization(queryParams.installation_id as string, queryParams.state as string)+ const isLinked = await linkGitAppInstallationWithOrganization(queryParams.installation_id as string, queryParams.state as string)+ if (isLinked){+ router.reload()+ }+console.log("installation verification complete")}catch (e){console.log("app installation is stale, start new session", e)