Skip to content

Commit 4bb9401

Browse files
committed
Update event verification with new param name
1 parent 143e051 commit 4bb9401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python-flask-directory-sync-example/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def webhooks():
125125
payload = request.get_data()
126126
sig_header = request.headers["WorkOS-Signature"]
127127
response = workos_client.webhooks.verify_event(
128-
payload=payload, event_signature=sig_header, secret=signing_secret
128+
event_body=payload, event_signature=sig_header, secret=signing_secret
129129
)
130130
message = json.dumps(response.dict())
131131
socketio.emit("webhook_received", message)

python-flask-directory-sync-example/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Flask==2.0.3
2-
workos==5.0.0
2+
workos>=5.0.0
33
urllib3>=2
44
python-dotenv
55
flask_socketio

0 commit comments

Comments
 (0)