Give a refresh token lifespan of 30 days

This commit is contained in:
Tracker-Friendly 2024-04-18 17:04:50 +01:00
parent 414a4e6dba
commit b0264a168a
1 changed files with 3 additions and 1 deletions

4
main
View File

@ -82,8 +82,10 @@ def check_username_taken(username):
return post["id"]
async def oauth2_token_refresh(openid, appId):
while True:
refreshes = 0
while refreshes != 720:
await asyncio.sleep(3600)
refreshes = refreshes + 1
conn = get_db_connection()
# Fetch required data in a single query