Skip to content

Commit

Permalink
protect secret key (NangoHQ#566)
Browse files Browse the repository at this point in the history
* protect secret key

* remove comments
  • Loading branch information
Chakravarthy7102 authored Apr 23, 2023
1 parent 1e8fe07 commit 7ba6abe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/webapp/src/pages/ProjectSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useGetProjectInfoAPI, useEditCallbackUrlAPI } from '../utils/api';
import { isCloud, defaultCallback } from '../utils/utils';
import DashboardLayout from '../layout/DashboardLayout';
import { LeftNavBarItems } from '../components/LeftNavBar';
import SecretInput from '../components/ui/SecretInput';

export default function ProjectSettings() {
const [loaded, setLoaded] = useState(false);
Expand Down Expand Up @@ -82,9 +83,7 @@ export default function ProjectSettings() {
</label>
<p className="ml-2 text-text-dark-gray text-sm">(do not share!)</p>
</div>
<Prism language="bash" colorScheme="dark">
{secretKey}
</Prism>
<SecretInput copy={true} defaultValue={secretKey} />
</div>
</div>
<div>
Expand Down

0 comments on commit 7ba6abe

Please sign in to comment.