Child: [c75285] (diff)

Download this file

tokenGenerator.js    13 lines (12 with data), 494 Bytes

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