diff --git a/index.js b/index.js index 1d4f5d6..f247927 100644 --- a/index.js +++ b/index.js @@ -256,7 +256,7 @@ LE.create = function (le) { throw new Error("le.challenge.set receives the wrong number of arguments." + " You must define setChallenge as function (opts, domain, key, val, cb) { }"); } - if (4 !== le.challenge.get.length) { + if (le.challenge.get && 4 !== le.challenge.get.length) { throw new Error("le.challenge.get receives the wrong number of arguments." + " You must define getChallenge as function (opts, domain, key, cb) { }"); }