Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
269 B
1
Indexable
Never
const tokenGen = () => {
  const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  let token = '';

  for (let i = 0; i < 16; i += 1) {
    token += characters.charAt(Math.floor(Math.random() * characters.length));
  }

  return token;
};
Leave a Comment