summaryrefslogtreecommitdiffstats
path: root/events/src/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'events/src/utils.py')
-rw-r--r--events/src/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/events/src/utils.py b/events/src/utils.py
index f405e44ac70..7d9b7b51d95 100644
--- a/events/src/utils.py
+++ b/events/src/utils.py
@@ -206,7 +206,7 @@ def get_jwt_token(secret, event_type, event_ts, jwt_expiry_time_seconds=60):
msg = base64_urlencode(header) + "." + base64_urlencode(payload)
return "%s.%s" % (
msg,
- base64_urlencode(hmac.HMAC(secret, msg, sha256).digest())
+ base64_urlencode(hmac.HMAC(str(secret), msg, sha256).digest())
)