Skip to content

Commit 6661f64

Browse files
jwt.decode() parameter algorithm should be plural
algorithm -> algorithms
1 parent 491ddc4 commit 6661f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def validate():
4949

5050
try:
5151
decoded = jwt.decode(
52-
encoded_jwt, os.environ.get("JWT_SECRET"), algorithm=["HS256"]
52+
encoded_jwt, os.environ.get("JWT_SECRET"), algorithms=["HS256"]
5353
)
5454
except:
5555
return "not authorized", 403

0 commit comments

Comments
 (0)