diff --git a/src/hello.js b/src/hello.js index a310208e..b0d0dcb9 100644 --- a/src/hello.js +++ b/src/hello.js @@ -1621,6 +1621,16 @@ hello.utils.Event.call(hello); emit('update'); } + // Issue 541 : Support on auth.error event - @prathmesh-sananse + // Check if there was an error in the session + else if (session && session.error) { + hello.emit('auth.error', { + network: name, + error: session.error, + authResponse: session + }); + } + // Updated stored session oldSessions[name] = session;