function createRandomToken() {
  return new Bluebird((resolve, reject) => {
    crypto.randomBytes(64, (err, buf) => {
      if (err) {
        reject(err);
      }
      const token = buf.toString('hex');
      resolve(token);
    });
  });
}
//function to create a random token
function to create a random token
function to create a random token
function createRandomToken() {
  return new Bluebird((resolve, reject) => {
    crypto.randomBytes(64, (err, buf) => {
      if (err) {
        reject(err);
      }
      const token = buf.toString('hex');
      resolve(token);
    });
  });
}
function createRandomToken ( ) { return new Bluebird ( ( resolve , reject ) => { crypto . randomBytes ( 64 , ( err , buf ) => { if ( err ) { reject ( err ) ; } const token = buf . toString ( 'hex' ) ; resolve ( token ) ; } ) ; } ) ; }
function to create a random token
function to create a random token