generate password reset token in node.js
I'm using this to generate my auth-token:
require('crypto').randomBytes(32, function(ex, buf) {
var token = buf.toString('hex');
});
Crypto Node.js v0.8.9 Manual & Documentation
I'm using this to generate my auth-token:
require('crypto').randomBytes(32, function(ex, buf) {
var token = buf.toString('hex');
});
Crypto Node.js v0.8.9 Manual & Documentation