Skip to content

Commit 8236a13

Browse files
authored
allow verification skipping (#605)
* allow verify skip verification if VERIFYING_KEY is not set * Update settings.py * Update authentication.py * Update settings.py * Update authentication.py
1 parent 8d0a806 commit 8236a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rest_framework_simplejwt/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_validated_token(self, raw_token):
8989
messages = []
9090
for AuthToken in api_settings.AUTH_TOKEN_CLASSES:
9191
try:
92-
return AuthToken(raw_token)
92+
return AuthToken(raw_token, api_settings.VERIFYING_KEY is not None)
9393
except TokenError as e:
9494
messages.append(
9595
{

0 commit comments

Comments
 (0)