From 26da6c84cc151a04af324e00ac73d2e08709555c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 25 Apr 2018 11:29:59 -0600 Subject: [PATCH] show example of non-random secret --- examples/remote-access.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/remote-access.js b/examples/remote-access.js index 02ad963..7369075 100644 --- a/examples/remote-access.js +++ b/examples/remote-access.js @@ -9,12 +9,11 @@ // This demo is used with tunnel-server.js and tunnel-client.js // -var crypto = require('crypto'); - var email = 'john.doe@gmail.com'; var domains = [ 'example.com' ]; var agreeLeTos = true; -var secret = crypto.randomBytes(16).toString('hex'); +//var secret = "My Little Brony"; +var secret = require('crypto').randomBytes(16).toString('hex'); require('../').create({ version: 'draft-11'