webrtc-signaling-helpers
Version:
This is a helper package which is needed to be installed if webrtc-signaling-server is installed
10 lines (8 loc) • 487 B
JavaScript
// TechnicalHeist - www.technicalheist.com
// MIT License - https://github.com/technicalheist/webrtc-signaling-helpers/blob/master/LICENSE
// Documentation - https://github.com/technicalheist/webrtc-signaling-helpers
// /admin/ page
module.exports = exports = function(params, config) {
if(!params || !params.adminUserName || !params.adminPassword) return false;
return params.adminUserName === config.adminUserName && params.adminPassword === config.adminPassword;
};