diff --git a/oauth3.core.js b/oauth3.core.js index b8ff6ee..ac2c825 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -215,7 +215,7 @@ , jwk: { get: function (decoded) { return OAUTH3.discover(decoded.payload.iss).then(function (directives) { - var urlObj = OAUTH3.jwk.url(directives, decoded); + var urlObj = OAUTH3.urls.jwk(directives, decoded); return OAUTH3.request(urlObj).catch(function (err) { return PromiseA.reject({ message: 'failed to retrieve public key from token issuer'