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 362ad17 commit e8d38ecCopy full SHA for e8d38ec
rest_framework_simplejwt/tokens.py
@@ -93,9 +93,9 @@ def verify(self):
93
# claim. We don't want any zombie tokens walking around.
94
self.check_exp()
95
96
- # Ensure token id is present if JTI_CLAIM != None
97
# According to RFC 7519, the "jti" claim is OPTIONAL
98
# (https://tools.ietf.org/html/rfc7519#section-4.1.7)
+ # Ensure token id is present only if JTI_CLAIM_IS_MENDATORY is set to True (default)
99
if api_settings.JTI_CLAIM_IS_MENDATORY and api_settings.JTI_CLAIM not in self.payload:
100
raise TokenError(_('Token has no id'))
101
0 commit comments