Skip to content
Snippets Groups Projects
Commit 83150629 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix bug where when authentication state is changed in-dialog the comm iframe...

fix bug where when authentication state is changed in-dialog the comm iframe wouldn't notice, and would conclude the user is not authenticated based on a cached session_context response
parent 8737d6e2
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,9 @@
chan.bind("dialog_complete", function(trans, params) {
pause = false;
// the dialog running can change authentication status,
// lets manually purge our network cache
network.clearContext();
checkAndEmit();
});
}());
......@@ -154,6 +154,14 @@ BrowserID.Network = (function() {
}, onFailure);
},
/**
* clear local cache, including authentication status and
* other session data.
*
* @method clearContext
*/
clearContext: clearContext,
/**
* Log the authenticated user out
* @method logout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment