mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
clarification on the 5 minute sync auth leeway
This commit is contained in:
parent
aaa69f696b
commit
42cd333694
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.56.2",
|
"version": "0.57.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.56.2",
|
"version": "0.57.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -26,7 +26,7 @@ function loginSync(req) {
|
|||||||
|
|
||||||
// login token is valid for 5 minutes
|
// login token is valid for 5 minutes
|
||||||
if (Math.abs(timestamp.getTime() - now.getTime()) > 5 * 60 * 1000) {
|
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;
|
const syncVersion = req.body.syncVersion;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user