Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
6 changes: 3 additions & 3 deletions src/app/dropbox/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ const handleVectorizeConnectDropbox = async () => {
authorization: data.authorization
}
});

const git_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 631821a.
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 631821a57ed4e32823de17fb36cb0a85fd11e60c:src/app/dropbox/page.tsx:generic-api-key:146 >> .gitleaksignore

// 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 +322,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
4 changes: 2 additions & 2 deletions src/app/googleDrive/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const handleVectorizeConnectGoogleDrive = 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 +322,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