From 9dbc2b5664bbf4046c481c5c53c1708b7aba0b8b Mon Sep 17 00:00:00 2001 From: John Shaver Date: Tue, 14 Nov 2017 07:38:34 -0800 Subject: [PATCH] Added some error handling so errors dissapearing. --- js/issuer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/issuer.js b/js/issuer.js index 6d39256..681b1d8 100644 --- a/js/issuer.js +++ b/js/issuer.js @@ -362,7 +362,13 @@ $(function () { function handleAuthorizationDialog() { return getSession(CONFIG.host).then(function (session) { return getGrants(session); - }).catch(function () { + }).catch(function (e) { + if(e) { + console.error( + "Error authing current session. Requiring re-login. Message: " + , e.message + ); + } // TODO select the providers the client wants to show // providers=daplie.com,facebook.com,google.com // etc // TODO let the client specify switch_user