mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 13:41:13 +02:00
chore: 🎨 format
This commit is contained in:
parent
ad78efb46f
commit
675e4c9199
|
@ -63,7 +63,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
const clientDataJSONHash = hash(Buffer.from(ps.clientDataJSON, "utf-8"));
|
const clientDataJSONHash = hash(Buffer.from(ps.clientDataJSON, "utf-8"));
|
||||||
|
|
||||||
const attestation = decode(Buffer.from(ps.attestationObject, "utf-8"));
|
const attestation = decode(Buffer.from(ps.attestationObject, "utf-8"));
|
||||||
|
|
||||||
const rpIdHash = attestation.authData.slice(0, 32);
|
const rpIdHash = attestation.authData.slice(0, 32);
|
||||||
if (!rpIdHashReal.equals(rpIdHash)) {
|
if (!rpIdHashReal.equals(rpIdHash)) {
|
||||||
throw new Error("rpIdHash mismatch");
|
throw new Error("rpIdHash mismatch");
|
||||||
|
|
Loading…
Reference in a new issue