fix: add missing await when verifying pincode

`validPincode` ends up as a `Promise` and evaluates as a thruthy value wether the pin is correct or not.
This commit is contained in:
Mauricio Allende 2025-01-17 22:54:20 -03:00 committed by GitHub
parent e4fe749251
commit 6b141c3ea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ export async function authWithPincode(
);
}
const validPincode = verifyPassword(
const validPincode = await verifyPassword(
pincode,
definedPincode.pincodeHash
);