trusted ext urls: use 1 hour instead of 10 mins

This commit is contained in:
João Moreno 2020-11-27 10:51:21 +01:00
parent 14415847e1
commit 1e0af43774
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -58,7 +58,7 @@ export class ExtensionUrlTrustService implements IExtensionUrlTrustService {
const timestamp = fragmentBuffer.readUIntBE(0, 6);
const diff = Date.now() - timestamp;
if (diff < 0 || diff > 600_000) { // 10 minutes
if (diff < 0 || diff > 3_600_000) { // 1 hour
this.logService.trace('ExtensionUrlTrustService#isExtensionUrlTrusted', 'Signed uri has expired', url);
return false;
}