INNER CODE UNIT · JavaScript

logAuthCheck

chadbyte/clay · lib/yoke/index.js:117

function logAuthCheck(auth) {
  var key = JSON.stringify(auth || {});
  var now = Date.now();
  if (_lastAuthLogKey === key && now - _lastAuthLogAt < 30000) return;
  _lastAuthLogKey = key;
  _lastAuthLogAt = now;
  console.log("[yoke] Auth check: " + Object.keys(auth).map(function(vendor) { return vendor + "=" + auth[vendor]; }).join(" "));
}

function checkAuth() {
  if (_authCache) return _authCache;

  var execSync = require("child_process").execSync;
  var execFileSync = require("child_process").execFileSync;

  function lookupBinary(name) {
    try {
      if (process.platform === "win32") {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…