From 51df65a0dd089f70e23369b56fdfd1341fc213ff Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 21 Feb 2017 12:22:38 -0700 Subject: [PATCH] bugfix: must call atob/btoa from window context --- oauth3.issuer.mock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth3.issuer.mock.js b/oauth3.issuer.mock.js index b618ba0..2afe1ee 100644 --- a/oauth3.issuer.mock.js +++ b/oauth3.issuer.mock.js @@ -5,7 +5,7 @@ OAUTH3._base64.btoa = function (b64) { // http://stackoverflow.com/questions/9677985/uncaught-typeerror-illegal-invocation-in-chrome - (exports.btoa || require('btoa'))(b64); + return (exports.btoa || require('btoa'))(b64); } OAUTH3._base64.encodeUrlSafe = function (b64) { // Base64 to URL-safe Base64