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: token without a scope is invalid
Abdullah Attada7d79edc62f
diff --git a/packages/core/src/api/token-manager.ts b/packages/core/src/api/token-manager.tsindex 812c3d1a5..2020b1260 100644--- a/packages/core/src/api/token-manager.ts+++ b/packages/core/src/api/token-manager.ts@@ -94,7 +94,7 @@ class TokenManager {) {return await getSafeToken(async () => {const token = await this.getToken(true, forceRenew);- if (!token) return;+ if (!token || !token.scope) return;if (!scopes.some((s) => token.scope.includes(s))) return;return token.access_token;}, "Error getting access token:");