diff --git a/rest_framework_simplejwt/authentication.py b/rest_framework_simplejwt/authentication.py index 15767cddd..fd26bdb06 100644 --- a/rest_framework_simplejwt/authentication.py +++ b/rest_framework_simplejwt/authentication.py @@ -89,7 +89,7 @@ def get_validated_token(self, raw_token): messages = [] for AuthToken in api_settings.AUTH_TOKEN_CLASSES: try: - return AuthToken(raw_token) + return AuthToken(raw_token, api_settings.VERIFYING_KEY is not None) except TokenError as e: messages.append( {