Skip to content

Commit

Permalink
feat: added random generator
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhkeshan committed Dec 20, 2024
1 parent eb3c8e3 commit aa072ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/hooks/usePaymaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const usePaymaster = () => {
console.log("reCAPTCHA not yet available");
return null;
}
const token = await executeRecaptcha("global_token");
const token = await executeRecaptcha(
Math.random().toString(36).substring(2, 7),
);

// Check if token exists and is less than 2 minutes old
if (token) {
Expand Down

0 comments on commit aa072ec

Please sign in to comment.