You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple application, where I'm fetching a goal by using MongoDB $and operator $and: [{ _id: { $eq: new ObjectId(id) } }, { userId: { $eq: userId } }] since my caching key is made of docId and the userId route should be protected other users not supposed to access the document. But I just log in from another account but can still access the data from unauthorized users.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a simple application, where I'm fetching a goal by using MongoDB
$and
operator$and: [{ _id: { $eq: new ObjectId(id) } }, { userId: { $eq: userId } }]
since my caching key is made ofdocId
and theuserId
route should be protected other users not supposed to access the document. But I just log in from another account but can still access the data from unauthorized users.cache.ts
auth.ts
Usage:
Beta Was this translation helpful? Give feedback.
All reactions