Skip to content

Commit e9be962

Browse files
committed
TW-1612: Temple Tap AirDrop. ++ Sig Auth. + Verified flag from Taquito
1 parent 6991838 commit e9be962

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sig-auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ export async function tezosSigAuthMiddleware(req: Request, res: Response, next:
7474

7575
// Signature
7676
try {
77-
verifySignature(messageBytes, publicKey, signature);
77+
const verified = verifySignature(messageBytes, publicKey, signature);
78+
if (!verified) throw new Error('Signature not verified');
7879
} catch (error) {
7980
logInvalidSigAuthValues('signature', req.headers);
8081
console.error(error);

0 commit comments

Comments
 (0)