We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 225222b + 903df16 commit bc88c20Copy full SHA for bc88c20
server/models/user.ts
@@ -172,7 +172,7 @@ userSchema.methods.findMatchingKey = async function findMatchingKey(
172
for (const k of this.apiKeys) {
173
try {
174
/* eslint-disable no-await-in-loop */
175
- const foundOne = await bcrypt.compareSync(candidateKey, k.hashedKey);
+ const foundOne = await bcrypt.compare(candidateKey, k.hashedKey);
176
177
if (foundOne) {
178
keyObj = { isMatch: true, keyDocument: k };
0 commit comments