Skip to content

Commit 28e60a0

Browse files
Fix JWT decryption issue (#15)
1 parent b581e22 commit 28e60a0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

authsignal/client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def enroll_verified_authenticator(self, user_id, authenticator_payload, path=No
177177

178178
def validate_challenge(self, token, user_id=None):
179179
try:
180-
decoded_token = jwt.decode(token, self.api_key, algorithms=["HS256"])
180+
decoded_token = jwt.decode(token, self.api_key, algorithms=["HS256"], options={'verify_aud': False})
181+
181182
except jwt.DecodeError as e:
182183
print(e)
183184
return

authsignal/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.0.3'
1+
VERSION = '1.0.4'

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "authsignal"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = "Authsignal Python SDK for Passwordless Step Up Authentication"
55
authors = ["justinsoong <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)