Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.77k stars 988 forks source link

Fix : Notification Toast will be displayed on clicking "Integrate with github" #2784

Closed Mhammad-riyaz closed 4 days ago

Mhammad-riyaz commented 4 days ago

Description 📣

Fixed the bug where the "Integrate with GitHub" button in the Secret Scanning tab failed silently. Added a user feedback toast message to inform users of failures.

Type ✨

Tests 🛠️

    const generateNewIntegrationSession = async () => {
      const session = await createNewIntegrationSession(String(localStorage.getItem("orgData.id")));
      if(session){
        router.push(
          `https://github.com/apps/infisical-radar/installations/new?state=${session.sessionId}`
        );
      }else{
        createNotification({text : "Secret scanning is temporarily unavailable.",type:"error"});
      }
    };