From 0014af5bd040f1594a4932f0417218e0e66e01c4 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 9 Mar 2017 20:42:06 -0800 Subject: [PATCH] Update auth-sample.js --- config/auth-sample.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/auth-sample.js b/config/auth-sample.js index 20356c0..aeb48e9 100644 --- a/config/auth-sample.js +++ b/config/auth-sample.js @@ -1,4 +1,7 @@ -exports.connectionRequest = function(deviceId) { - // return username/password pair for a given device - return ["", ""]; +"use strict"; + +function connectionRequest(deviceId, url, username, password, callback) { + return callback(username || deviceId, password || ""); } + +exports.connectionRequest = connectionRequest;