Give a refresh token lifespan of 30 days
This commit is contained in:
parent
414a4e6dba
commit
b0264a168a
4
main
4
main
|
@ -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
|
||||
|
|
Reference in New Issue