aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth/authorize.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-16 19:03:49 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-16 19:07:36 +0100
commit1276d199e37328f22712af46c27db65ceedcb5d3 (patch)
tree1c70a1903f666374173e228aeaff259521525b79 /backend/routes/auth/authorize.py
parentSimplify the docker compose build config (diff)
Use redis for the discord member cache over mongo
Diffstat (limited to 'backend/routes/auth/authorize.py')
-rw-r--r--backend/routes/auth/authorize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index bc80a7d..8fe7e85 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -44,7 +44,7 @@ async def process_token(
return AUTH_FAILURE
user_id = user_details["id"]
- member = await get_member(request.state.db, user_id, force_refresh=True)
+ member = await get_member(user_id, force_refresh=True)
max_age = datetime.timedelta(seconds=int(bearer_token["expires_in"]))
token_expiry = interaction_start + max_age