Skip to content

Commit

Permalink
Add clearing expired oauth tokens to account maintenance task
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Sep 16, 2024
1 parent 44ea4aa commit 91f14ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions froide/account/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from django.db.models.query import QuerySet
from django.utils import translation

from oauth2_provider.models import clear_expired as clear_expired_oauth2_tokens

from froide.celery import app as celery_app

User = get_user_model()
Expand Down Expand Up @@ -64,6 +66,7 @@ def account_maintenance_task():
delete_deactivated_users()
delete_all_expired_exports()
delete_expired_onetime_login_tokens()
clear_expired_oauth2_tokens()


@celery_app.task
Expand Down

0 comments on commit 91f14ae

Please sign in to comment.