Skip to content

Commit 6337609

Browse files
Adam WolfmanAdam Wolfman
authored andcommitted
Fix indentation on verify_event
1 parent f2a57d0 commit 6337609

File tree

1 file changed

+4
-4
lines changed
  • python-flask-directory-sync-example

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def directory_groups():
2929
@app.route('/webhooks', methods=['POST'])
3030
def webhooks():
3131
payload = request.get_data()
32-
sig_header = request.headers['Workos-Signature']
32+
sig_header = request.headers['WorkOS-Signature']
3333

3434
response = workos_client.webhooks.verify_event(
35-
payload = payload,
36-
sig_header = sig_header,
37-
secret = os.getenv('WEBHOOKS_SECRET')
35+
payload = payload,
36+
sig_header = sig_header,
37+
secret = os.getenv('WEBHOOKS_SECRET')
3838
)
3939
# Validate the response is successful
4040
print(response)

0 commit comments

Comments
 (0)