mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 00:59:09 +00:00
parent
175144cc7a
commit
dec4aa9619
4 changed files with 4 additions and 32 deletions
|
@ -13,7 +13,6 @@ export const verifyRequest = async (
|
|||
const signature = request.headers.get('x-signature-ed25519');
|
||||
|
||||
if (!timestamp || !signature) {
|
||||
console.error("interactions: missing signature headers", { timestamp, signature });
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -32,13 +31,8 @@ export const verifyRequest = async (
|
|||
bufferizeString(timestamp + JSON.stringify(interaction))
|
||||
);
|
||||
|
||||
if (!verified) {
|
||||
console.error("interactions: signature verification failed", { timestamp, signature });
|
||||
}
|
||||
|
||||
return verified;
|
||||
} catch (e) {
|
||||
console.error("interactions: signature verification failed", e);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue