Remove console logs from webhook verifier

In the server service for verifying webhooks from the Postgres database, unnecessary console logs that were printing the header and secret were removed. This change aligns with the best practices for production code where debug logs are not expected.
This commit is contained in:
giancarlo
2024-05-04 00:10:38 +07:00
parent b388605317
commit 6be43ef77c

View File

@@ -20,11 +20,6 @@ class PostgresDatabaseWebhookVerifierService
verifySignatureOrThrow(request: Request) {
const header = request.headers.get('X-Supabase-Event-Signature');
console.log({
header,
webhooksSecret,
});
if (header !== webhooksSecret) {
throw new Error('Invalid signature');
}