Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/app/dropbox/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export default function Home() {
}
};

const token = "ghp_1234567890abcdefghijklmnopqrstuvwx";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 1f0619c.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 1f0619c8f8ed2b453bc328cb7b99aa46f3dd2070:src/app/dropbox/page.tsx:generic-api-key:84 >> .gitleaksignore

const test_aws = "AKIA1234567890ABCDEFGHI";

// Function for creating a White Label connector
const handleCreateWhiteLabelConnector = async () => {
const connectorName = "My White Label Dropbox Connector";
Expand Down Expand Up @@ -145,7 +148,7 @@ const handleVectorizeConnectDropbox = async () => {
});

// Generate random user ID for demo purposes
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 1000);
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 10000);
setVectorizeUserId(randomUserId);

// Get one-time token from API
Expand Down Expand Up @@ -322,7 +325,7 @@ const handleVectorizeRemoveUser = async () => {
setRefreshToken(refreshToken);

// Generate random user ID for demo purposes if none exists
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 1000);
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 10000);
setUserId(newUserId);

// Use the manage-oauth-user endpoint instead of add-oauth-user
Expand Down
Loading