From 06e56cdc59677eae73151f38d2015a53125c2f0a Mon Sep 17 00:00:00 2001 From: Sudhan <25459246+Nahdus@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:22:17 +0530 Subject: [PATCH] Update auth.py jwt.decode needs key "algorithms" not "algorithm" to work refer https://pyjwt.readthedocs.io/en/stable/ --- AC/API_server/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AC/API_server/auth.py b/AC/API_server/auth.py index 5dc42ca..055dd2b 100644 --- a/AC/API_server/auth.py +++ b/AC/API_server/auth.py @@ -10,7 +10,7 @@ def verify_access_token(access_token): try: decoded_token = jwt.decode(access_token, public_key, issuer = ISSUER, - algorithm = 'RS256') + algorithms = 'RS256') except (jwt.exceptions.InvalidTokenError, jwt.exceptions.InvalidSignatureError, jwt.exceptions.InvalidIssuerError,