diff --git a/apps/authentication/backends/passkey/models.py b/apps/authentication/backends/passkey/models.py index 0afe55abc..cc66e3d53 100644 --- a/apps/authentication/backends/passkey/models.py +++ b/apps/authentication/backends/passkey/models.py @@ -13,7 +13,7 @@ class Passkey(JMSBaseModel): added_on = models.DateTimeField(auto_now_add=True, verbose_name=_("Added on")) date_last_used = models.DateTimeField(null=True, default=None, verbose_name=_("Date last used")) credential_id = models.CharField(max_length=255, unique=True, null=False, verbose_name=_("Credential ID")) - token = models.CharField(max_length=255, null=False, verbose_name=_("Token")) + token = models.CharField(max_length=1024, null=False, verbose_name=_("Token")) def __str__(self): return self.name diff --git a/apps/authentication/migrations/0004_alter_passkey_token.py b/apps/authentication/migrations/0004_alter_passkey_token.py new file mode 100644 index 000000000..507b14ce5 --- /dev/null +++ b/apps/authentication/migrations/0004_alter_passkey_token.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.13 on 2024-12-12 06:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authentication', '0003_sshkey'), + ] + + operations = [ + migrations.AlterField( + model_name='passkey', + name='token', + field=models.CharField(max_length=1024, verbose_name='Token'), + ), + ]