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
core: fix access token not saved
Ammar Ahmed9e5bdf9e3310
diff --git a/packages/core/src/api/token-manager.js b/packages/core/src/api/token-manager.jsindex 6ce3d429a..d28ddda1c 100644--- a/packages/core/src/api/token-manager.js+++ b/packages/core/src/api/token-manager.js@@ -126,14 +126,7 @@ class TokenManager {saveToken(tokenResponse) {this.logger.info("Saving new token", tokenResponse);- if (- !tokenResponse ||- !tokenResponse.refresh_token ||- !tokenResponse.access_token ||- !tokenResponse.scope ||- !tokenResponse.expires_in- )- return;+ if (!tokenResponse || !tokenResponse.access_token) return;let token = { ...tokenResponse, t: Date.now() };return this._storage.write("token", token);}