Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
clarification on the 5 minute sync auth leeway
zadam42cd33369407
diff --git a/package-lock.json b/package-lock.jsonindex 90b601659e..803689d63b 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "trilium",- "version": "0.56.2",+ "version": "0.57.2","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "trilium",- "version": "0.56.2",+ "version": "0.57.2","hasInstallScript": true,"license": "AGPL-3.0-only","dependencies": {diff --git a/src/routes/api/login.js b/src/routes/api/login.jsindex 89d3ec4d79..f93467efae 100644--- a/src/routes/api/login.js+++ b/src/routes/api/login.js@@ -26,7 +26,7 @@ function loginSync(req) {// login token is valid for 5 minutesif (Math.abs(timestamp.getTime() - now.getTime()) > 5 * 60 * 1000) {- return [401, { message: 'Auth request time is out of sync, please check that both client and server have correct time.' }];+ return [401, { message: 'Auth request time is out of sync, please check that both client and server have correct time. The difference between clocks has to be smaller than 5 minutes.' }];}const syncVersion = req.body.syncVersion;