From 5b80564601fc305a41bc8075e65f16d5964a56e7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 19 Jun 2022 23:31:04 +0300 Subject: [PATCH] Increase expiry of tokens. --- etebase_server/django/token_auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_server/django/token_auth/models.py b/etebase_server/django/token_auth/models.py index 6cb143f..b38b816 100644 --- a/etebase_server/django/token_auth/models.py +++ b/etebase_server/django/token_auth/models.py @@ -12,7 +12,7 @@ def generate_key(): def get_default_expiry(): - return timezone.now() + timezone.timedelta(days=30) + return timezone.now() + timezone.timedelta(days=365 * 20) class AuthToken(models.Model):