Last active
August 17, 2021 09:41
-
-
Save JoDeveloper/ac39a395f496d9c533d2cb91810eba4b to your computer and use it in GitHub Desktop.
js create token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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