We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a062bef commit 3bd42ceCopy full SHA for 3bd42ce
livekit-api/livekit/api/webhook.py
@@ -11,6 +11,8 @@ def __init__(self, token_verifier: TokenVerifier):
11
12
def receive(self, body: str, auth_token: str) -> proto_webhook.WebhookEvent:
13
claims = self._verifier.verify(auth_token)
14
+ if claims.sha256 is None:
15
+ raise Exception("sha256 was not found in the token")
16
17
body_hash = hashlib.sha256(body.encode()).digest()
18
claims_hash = base64.b64decode(claims.sha256)
0 commit comments