Nattyboi commited on
Commit
5c6cdb1
·
1 Parent(s): 97aa98f
Files changed (1) hide show
  1. tokenManagement.py +2 -2
tokenManagement.py CHANGED
@@ -154,8 +154,8 @@ def verify_refresh_access_token(db_uri: str, user_id: str, access_token: str) ->
154
  # Connect to MongoDB
155
  client = MongoClient(db_uri)
156
  db = client["crayonics"]
157
- collection = db["AccessToken"]
158
- docs = collection.find({"user_id":user_id})
159
  for doc in docs:
160
 
161
  if doc==None:
 
154
  # Connect to MongoDB
155
  client = MongoClient(db_uri)
156
  db = client["crayonics"]
157
+ collection = db["RefreshToken"]
158
+ docs = collection.find({"user_id":user_id,"previous_access_token":access_token})
159
  for doc in docs:
160
 
161
  if doc==None: