From 82ed16e16232e73cd1a3847dfd363802b94dc2bf Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 16 Nov 2017 20:41:50 +0000 Subject: [PATCH] don't overwrite existing authn --- oauth3.issuer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth3.issuer.js b/oauth3.issuer.js index 6d1519f..d751f96 100644 --- a/oauth3.issuer.js +++ b/oauth3.issuer.js @@ -294,7 +294,7 @@ OAUTH3.urls.credentialMeta = function (directive, opts) { .replace(':id', opts.email) }; -OAUTH3.authn = {}; +OAUTH3.authn = OAUTH3.authn || {}; OAUTH3.authn.loginMeta = function (directive, opts) { var url = OAUTH3.urls.credentialMeta(directive, opts); return OAUTH3.request({