Added some error handling so errors dissapearing.

This commit is contained in:
John Shaver 2017-11-14 07:38:34 -08:00
parent 25d7874104
commit 9dbc2b5664
1 changed files with 7 additions and 1 deletions

View File

@ -362,7 +362,13 @@ $(function () {
function handleAuthorizationDialog() { function handleAuthorizationDialog() {
return getSession(CONFIG.host).then(function (session) { return getSession(CONFIG.host).then(function (session) {
return getGrants(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 // TODO select the providers the client wants to show
// providers=daplie.com,facebook.com,google.com // etc // providers=daplie.com,facebook.com,google.com // etc
// TODO let the client specify switch_user // TODO let the client specify switch_user