Skip to content

Commit 7eb0b49

Browse files
authored
Rest auth backends: try JWT auth first (#820)
1 parent a391b43 commit 7eb0b49

File tree

1 file changed

+1
-1
lines changed
  • {{ cookiecutter.name }}/src/app/conf

1 file changed

+1
-1
lines changed

{{ cookiecutter.name }}/src/app/conf/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"DEFAULT_FILTER_BACKENDS": ("django_filters.rest_framework.DjangoFilterBackend",),
1212
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticatedOrReadOnly",),
1313
"DEFAULT_AUTHENTICATION_CLASSES": [
14-
"rest_framework.authentication.TokenAuthentication",
1514
"rest_framework_simplejwt.authentication.JWTAuthentication",
15+
"rest_framework.authentication.TokenAuthentication",
1616
],
1717
"DEFAULT_RENDERER_CLASSES": [
1818
"app.api.renderers.AppJSONRenderer",

0 commit comments

Comments
 (0)