Parent: [a1bee8] (diff)

Download this file

tokenGenerator.js    18 lines (16 with data), 558 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
/*made by Miguel Rodrigues @ KBZ miguel.rodrigues@knowledgebiz.pt*/
/*
Description: Function for Generator Token
Output: String with Token
Extra-Information:
const tokgen3 = new TokenGenerator(512, TokenGenerator.BASE62);
const tokgen4 = new TokenGenerator(256, TokenGenerator.BASE71);
var t3 = tokgen3.generate();
var t4 = tokgen4.generate();
*/
module.exports.token_generator= function(){
const TokenGenerator = require('uuid-token-generator');
const tokgen2 = new TokenGenerator(256, TokenGenerator.BASE62);
var t2 = tokgen2.generate();
return t2;
}