A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
revert: fix: refresh token once before giving up
thecodrr908ef79e7c2f
diff --git a/packages/core/api/token-manager.js b/packages/core/api/token-manager.jsindex 6d1386a86..937228497 100644--- a/packages/core/api/token-manager.js+++ b/packages/core/api/token-manager.js@@ -44,11 +44,7 @@ class TokenManager {} catch (e) {console.error("Error getting access token:", e);if (e.message === "invalid_grant" || e.message === "invalid_client") {- await this._refreshToken(true);- const token = await this.getToken(false, false);- if (!token || this._isTokenExpired(token))- EV.publish(EVENTS.userSessionExpired);- return token.access_token;+ EV.publish(EVENTS.userSessionExpired);}throw e;}