mirror of https://github.com/keeweb/keeweb.git
calling oauth authorize again if the refresh token is expired
This commit is contained in:
parent
ccfd5126bc
commit
b4b6ef3206
|
@ -447,9 +447,12 @@ class StorageBase {
|
||||||
if (xhr.status === 400) {
|
if (xhr.status === 400) {
|
||||||
delete this.runtimeData[this.name + 'OAuthToken'];
|
delete this.runtimeData[this.name + 'OAuthToken'];
|
||||||
this._oauthToken = null;
|
this._oauthToken = null;
|
||||||
|
this.logger.error('Error exchanging refresh token, trying to authorize again');
|
||||||
|
this._oauthAuthorize(callback);
|
||||||
|
} else {
|
||||||
|
this.logger.error('Error exchanging refresh token', err);
|
||||||
|
callback?.('Error exchanging refresh token');
|
||||||
}
|
}
|
||||||
this.logger.error('Error exchanging refresh token', err);
|
|
||||||
callback?.('Error exchanging refresh token');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue