diff --git a/api/helpers/user/token_check.py b/api/helpers/user/token_check.py index 8779be1..08647b0 100644 --- a/api/helpers/user/token_check.py +++ b/api/helpers/user/token_check.py @@ -113,7 +113,7 @@ async def is_authorized( # Fetch the auth tokens from the database: # Retrieve the document of the token id: auth_tokens = await current_app.core_auth_token_controller.get_tokens_from_ids( - mongo_conn = mongo_conn, + mongo_data_conn = mongo_conn, token_ids = [ObjectId(t) for t in token_ids] )