From 22fd3ff91795df8d5b645cfc540740b83ef6a0c8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 1 Dec 2017 22:11:06 +0000 Subject: [PATCH] always include crypto --- oauth3.node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oauth3.node.js b/oauth3.node.js index efa25c6..155bd57 100644 --- a/oauth3.node.js +++ b/oauth3.node.js @@ -10,6 +10,8 @@ var PromiseA = require('bluebird'); var requestAsync = PromiseA.promisify(require('request')); var crypto = require('crypto'); +OAUTH3.crypto = OAUTH3.crypto || {}; +OAUTH3.crypto.core = require('./oauth3.node.crypto.js'); OAUTH3.PromiseA = PromiseA; OAUTH3._discoverHelper = function(providerUri, opts) { return OAUTH3._node.discover(providerUri, opts);