Skip to content

Commit d688580

Browse files
authored
Update authress/api/token_verifier.py
1 parent 29c6fe0 commit d688580

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

authress/api/token_verifier.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ def verify_token(self, authressCustomDomain, token, options=None):
5555

5656
try:
5757
return jwt.decode(authenticationToken, jwt.api_jwk.PyJWK.from_dict(jwk).key, algorithms=['EdDSA'], options = { 'verify_aud': False })
58-
except
58+
except:
5959
raise Exception("Unauthorized", "Token is invalid")
60-
61-
raise Exception("Unauthorized", "Token is invalid")
62-
6360
def get_public_key(self, jwkKeyListUrl, kid):
6461
hashKey = f"{jwkKeyListUrl}|{kid}"
6562

0 commit comments

Comments
 (0)