always include crypto

This commit is contained in:
AJ ONeal 2017-12-01 22:11:06 +00:00
parent 0c13b2abcf
commit 22fd3ff917
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ var PromiseA = require('bluebird');
var requestAsync = PromiseA.promisify(require('request')); var requestAsync = PromiseA.promisify(require('request'));
var crypto = require('crypto'); var crypto = require('crypto');
OAUTH3.crypto = OAUTH3.crypto || {};
OAUTH3.crypto.core = require('./oauth3.node.crypto.js');
OAUTH3.PromiseA = PromiseA; OAUTH3.PromiseA = PromiseA;
OAUTH3._discoverHelper = function(providerUri, opts) { OAUTH3._discoverHelper = function(providerUri, opts) {
return OAUTH3._node.discover(providerUri, opts); return OAUTH3._node.discover(providerUri, opts);