(feat:auth) follow connector-session

This commit is contained in:
ManishMadan2882
2025-08-28 00:53:19 +05:30
parent a0cc2e4d46
commit f39ac9945f

View File

@@ -215,9 +215,9 @@ class GoogleDriveAuth(BaseConnectorAuth):
mongo = MongoDB.get_client()
db = mongo[settings.MONGO_DB_NAME]
sessions_collection = db["drive_sessions"]
session = sessions_collection.find_one({"session_token": session_token})
sessions_collection = db["connector_sessions"]
session = sessions_collection.find_one({"session_token": session_token})
if not session:
raise ValueError(f"Invalid session token: {session_token}")