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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user