We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54b9ec commit be83eabCopy full SHA for be83eab
api/authentication/serializers/login.py
@@ -55,7 +55,10 @@ def validate(self, data):
55
)
56
if not session.token:
57
raise ValueError
58
- except (ObjectDoesNotExist, ValueError):
+
59
+ jwt.decode(session.token, settings.SECRET_KEY, algorithms=["HS256"])
60
61
+ except (ObjectDoesNotExist, ValueError, jwt.ExpiredSignatureError):
62
session = ActiveSession.objects.create(
63
user=user,
64
token=_generate_jwt_token(user)
0 commit comments