mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 00:59:09 +00:00
flip role order
This commit is contained in:
parent
a682ade1d3
commit
175144cc7a
4 changed files with 32 additions and 4 deletions
|
@ -13,6 +13,7 @@ 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;
|
||||
}
|
||||
|
||||
|
@ -31,8 +32,13 @@ 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