Skip to content

Commit 36d7dfc

Browse files
committed
fixes
1 parent 2a5297d commit 36d7dfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser_use_sdk/lib/webhooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ def verify_webhook_event_signature(
123123

124124
# Verify
125125

126-
expected_signature = create_webhook_signature(
126+
calculated_signature = create_webhook_signature(
127127
payload=webhook_event.payload.model_dump(), timestamp=timestamp, secret=secret
128128
)
129129

130-
if not hmac.compare_digest(expected_signature, expected_signature):
130+
if not hmac.compare_digest(expected_signature, calculated_signature):
131131
return None
132132

133133
return webhook_event

0 commit comments

Comments
 (0)