From 4055e078fe2e20572223eb0e68edc6ec777d7162 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 23 Dec 2023 14:13:42 -0800 Subject: [PATCH] Prioritize token auth over session --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 30986aaa0..2df9b83ea 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -297,8 +297,8 @@ if DEBUG: REST_FRAMEWORK = { "DEFAULT_AUTHENTICATION_CLASSES": [ "rest_framework.authentication.BasicAuthentication", - "rest_framework.authentication.SessionAuthentication", "rest_framework.authentication.TokenAuthentication", + "rest_framework.authentication.SessionAuthentication", ], "DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.AcceptHeaderVersioning", "DEFAULT_VERSION": "1",