Skip to content

Commit

Permalink
Update web-utils.ts (#180)
Browse files Browse the repository at this point in the history
Update token generator to 64 chars.
  • Loading branch information
doatech committed Sep 18, 2022
1 parent 733ed30 commit b890d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b890d88

Please sign in to comment.