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.
1 parent 97f761d commit 34b1814Copy full SHA for 34b1814
1 file changed
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