From 6661f64554e129da01f40bfc175eb596ad0c5a36 Mon Sep 17 00:00:00 2001 From: calvinscottforbes Date: Sun, 13 Nov 2022 22:49:58 -0500 Subject: [PATCH] jwt.decode() parameter algorithm should be plural algorithm -> algorithms --- src/auth/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/server.py b/src/auth/server.py index 00c809a..d8436f2 100644 --- a/src/auth/server.py +++ b/src/auth/server.py @@ -49,7 +49,7 @@ def validate(): try: decoded = jwt.decode( - encoded_jwt, os.environ.get("JWT_SECRET"), algorithm=["HS256"] + encoded_jwt, os.environ.get("JWT_SECRET"), algorithms=["HS256"] ) except: return "not authorized", 403