funquail/api/funkwhale_api/users/oauth/tasks.py

8 lines
210 B
Python
Raw Normal View History

from funkwhale_api.taskapp import celery
from oauth2_provider import models as oauth2_models
@celery.app.task(name="oauth.clear_expired_tokens")
def clear_expired_tokens():
oauth2_models.clear_expired()