# Generated by Django 5.1.12 on 2025-09-25 15:26

import authentik.lib.utils.time
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_providers_oauth2", "0029_oauth2provider__backchannel_logout_uris"),
    ]

    operations = [
        migrations.AddField(
            model_name="oauth2provider",
            name="refresh_token_threshold",
            field=models.TextField(
                default="seconds=0",
                help_text="When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).",
                validators=[authentik.lib.utils.time.timedelta_string_validator],
            ),
        ),
    ]
