clarification on the 5 minute sync auth leeway

This commit is contained in:
zadam 2022-12-02 22:12:07 +01:00
parent aaa69f696b
commit 42cd333694
2 changed files with 3 additions and 3 deletions

4
package-lock.json generated
View File

@ -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": {

View File

@ -26,7 +26,7 @@ function loginSync(req) {
// login token is valid for 5 minutes
if (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;