mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
Logging around api logout
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "__MSG_extName__",
|
"name": "__MSG_extName__",
|
||||||
"short_name": "__MSG_appName__",
|
"short_name": "__MSG_appName__",
|
||||||
"version": "1.10.0",
|
"version": "1.10.1",
|
||||||
"description": "__MSG_extDesc__",
|
"description": "__MSG_extDesc__",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"author": "8bit Solutions LLC",
|
"author": "8bit Solutions LLC",
|
||||||
|
|||||||
@@ -324,7 +324,9 @@ function initApiService() {
|
|||||||
// Helpers
|
// Helpers
|
||||||
|
|
||||||
function handleError(errorCallback, jqXHR, tokenError, self) {
|
function handleError(errorCallback, jqXHR, tokenError, self) {
|
||||||
if ((tokenError && jqXHR.status === 400) || jqXHR.status === 401 || jqXHR.status === 403) {
|
if (jqXHR && (tokenError && jqXHR.status === 400) || jqXHR.status === 401 || jqXHR.status === 403) {
|
||||||
|
console.log('Logging out from apiService at ' + new Date() + '. Reason: Status ' + jqXHR.status + '.');
|
||||||
|
console.log(jqXHR);
|
||||||
if (self && self.logoutCallback) {
|
if (self && self.logoutCallback) {
|
||||||
self.logoutCallback(true, function () { })
|
self.logoutCallback(true, function () { })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user