From b890d8861f76590771245764921bf8d903bec54a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Sun, 18 Sep 2022 18:42:23 +0200 Subject: [PATCH] Update web-utils.ts (#180) Update token generator to 64 chars. --- src/web-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web-utils.ts b/src/web-utils.ts index cd631933..349b7512 100644 --- a/src/web-utils.ts +++ b/src/web-utils.ts @@ -101,7 +101,7 @@ export class WebUtils { } static randomString(length: number = 10) { - const haystack = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; + const haystack = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; let randomStr; if (window.crypto) { let numberArray: Uint32Array = new Uint32Array(length);