diff --git a/index.html b/index.html index 7ab2ef1..5cf4bd0 100644 --- a/index.html +++ b/index.html @@ -769,7 +769,7 @@ async function generateBearerToken(secret) { const valid = String(Date.now() + 3600000 * 12); // Note: valid for 12 hours - const salt = String(Math.random().toString(36).slice(2)).repeat(3); + const salt = Array.from({ length: 3 }).map(() => Math.random().toString(36).slice(2)).join(''); let hash; if (crypto.subtle) { const buff = await crypto.subtle.digest('SHA-512', new TextEncoder('utf-8').encode(salt + valid + secret));