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

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;