This commit is contained in:
1 parent
b4f9c911fe
commit
c479862c0e
1 file changed
+1
-1
@@ -27,5 +27,5 @@ def generate_ws_token(user_id: int) -> str:
|
||||
|
||||
|
||||
def decode_token(token: str) -> dict:
|
||||
payload = jwt.decode(token, JWT_SECRET)
|
||||
payload = jwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM])
|
||||
return payload
|
||||
Reference in new issue
Block a user