From 71c2046e4104fd990a7e29247ad3aff9ac705791 Mon Sep 17 00:00:00 2001 From: Nikolay Kiryanov Date: Mon, 2 Jun 2025 19:39:13 +0300 Subject: [PATCH] Rest auth backends: try JWT auth first --- {{ cookiecutter.name }}/src/app/conf/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{ cookiecutter.name }}/src/app/conf/api.py b/{{ cookiecutter.name }}/src/app/conf/api.py index 5efab27a..dd94c88b 100644 --- a/{{ cookiecutter.name }}/src/app/conf/api.py +++ b/{{ cookiecutter.name }}/src/app/conf/api.py @@ -11,8 +11,8 @@ "DEFAULT_FILTER_BACKENDS": ("django_filters.rest_framework.DjangoFilterBackend",), "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticatedOrReadOnly",), "DEFAULT_AUTHENTICATION_CLASSES": [ - "rest_framework.authentication.TokenAuthentication", "rest_framework_simplejwt.authentication.JWTAuthentication", + "rest_framework.authentication.TokenAuthentication", ], "DEFAULT_RENDERER_CLASSES": [ "app.api.renderers.AppJSONRenderer",