Skip to content

Instantly share code, notes, and snippets.

@JoDeveloper
Last active August 17, 2021 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoDeveloper/ac39a395f496d9c533d2cb91810eba4b to your computer and use it in GitHub Desktop.
Save JoDeveloper/ac39a395f496d9c533d2cb91810eba4b to your computer and use it in GitHub Desktop.
js create token
const rand=()=>Math.random(0).toString(36).substr(2);
const token=(length)=>(rand()+rand()+rand()+rand()).substr(0,length);
console.log(token(56));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment