export function randomString(size: number): string { let token = ""; let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (let i = 0; i < size; i++) { token += possible.charAt(Math.floor(Math.random() * possible.length)); } return token; }