From ed16f686aaaac3e4975a83c7c1f8a84496c9cd3c Mon Sep 17 00:00:00 2001 From: Simon Stier <52674635+simontaurus@users.noreply.github.com> Date: Sun, 1 Dec 2024 06:38:29 +0100 Subject: [PATCH] set options={"verify_sub": False} Refs: #51 --- mwoauth/functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mwoauth/functions.py b/mwoauth/functions.py index 834df5a..691992a 100644 --- a/mwoauth/functions.py +++ b/mwoauth/functions.py @@ -231,7 +231,8 @@ def identify(mw_uri, consumer_token, access_token, leeway=10.0, identity = jwt.decode(r.content, consumer_token.secret, audience=consumer_token.key, algorithms=["HS256"], - leeway=leeway) + leeway=leeway, + options={"verify_sub": False}) except jwt.InvalidTokenError as e: if r.text.startswith('{'): try: