Skip to content

Commit 57a1309

Browse files
committed
Add more digits to random
1 parent 26a8a41 commit 57a1309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/dropbox/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const handleVectorizeConnectDropbox = async () => {
145145
});
146146

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

151151
// Get one-time token from API
@@ -322,7 +322,7 @@ const handleVectorizeRemoveUser = async () => {
322322
setRefreshToken(refreshToken);
323323

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

328328
// Use the manage-oauth-user endpoint instead of add-oauth-user

0 commit comments

Comments
 (0)