functions/index.js
// Basic function to validate credentials for example
Basic function to validate credentials for example
Basic function to validate credentials for example
function check(name, pass) {
    let valid = true;
    valid = compare(name, secrets.name) && valid;
    valid = compare(pass, secrets.pass) && valid;
    return valid;
  }
function check ( name , pass ) { let valid = true ; valid = compare ( name , secrets . name ) && valid ; valid = compare ( pass , secrets . pass ) && valid ; return valid ; }
Basic function to validate credentials for example
Basic function to validate credentials for example
// Simple method to prevent short-circut and use timing-safe compare