mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:09:16 +02:00
Resolve "Implement a Oauth provider in Funkwhale"
This commit is contained in:
parent
1dc7304bd3
commit
4c13d47387
54 changed files with 2811 additions and 249 deletions
8
api/funkwhale_api/users/oauth/tasks.py
Normal file
8
api/funkwhale_api/users/oauth/tasks.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue