From 286bf65c3acb34cfeb0bed2537905b6ab1f9cc1b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 14 Oct 2024 07:31:21 -0700 Subject: [PATCH] Also increase refresh_token --- ..._mailaccount_expiration_mailaccount_account_type_and_more.py | 2 +- src/paperless_mail/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless_mail/migrations/0027_mailaccount_expiration_mailaccount_account_type_and_more.py b/src/paperless_mail/migrations/0027_mailaccount_expiration_mailaccount_account_type_and_more.py index f944f7b23..3fb1e6af2 100644 --- a/src/paperless_mail/migrations/0027_mailaccount_expiration_mailaccount_account_type_and_more.py +++ b/src/paperless_mail/migrations/0027_mailaccount_expiration_mailaccount_account_type_and_more.py @@ -40,7 +40,7 @@ class Migration(migrations.Migration): field=models.CharField( blank=True, help_text="The refresh token to use for token authentication e.g. with oauth2.", - max_length=2048, + max_length=3072, null=True, verbose_name="refresh token", ), diff --git a/src/paperless_mail/models.py b/src/paperless_mail/models.py index f5f810911..6ba00151d 100644 --- a/src/paperless_mail/models.py +++ b/src/paperless_mail/models.py @@ -64,7 +64,7 @@ class MailAccount(document_models.ModelWithOwner): refresh_token = models.CharField( _("refresh token"), - max_length=2048, + max_length=3072, blank=True, null=True, help_text=_(