Here i'm checking with the collection keys
, the apikey
which im passing in postman it showing invalid credentials. the console value showing null
. Dont know where im doing wrong thanks in advance
const fKey = await Key.findOne({
password: req.params.apikey,
active: true
});
console.log("fKey....",fKey)