From 99f1a3a1b4bc9a9beb2239f589223ff39f662251 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Sanchez Date: Sun, 3 Nov 2024 22:24:43 +0100 Subject: [PATCH] docs: Update Token Authentication sections to explain how to properly disable it (#648) --- docs/configuration.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/configuration.rst b/docs/configuration.rst index a86182f6..98381ff1 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -62,6 +62,8 @@ authentication in ``dj_rest_auth.views.LoginView``. The value is the dotted path to ``dj_rest_auth.serializers.TokenSerializer``, which is also the default. +.. note:: This should be set to ``None`` together with ``TOKEN_MODEL`` if you don't want to use Token Authentication. + ``JWT_SERIALIZER`` ================== @@ -143,6 +145,8 @@ The path to the model class for the token. The value is the dotted path to ``None`` token authentication will be disabled. In this case at least one of ``SESSION_LOGIN`` or ``USE_JWT`` must be enabled. +.. note:: ``TOKEN_SERIALIZER`` should also be set to `None` if you don't want to use Token Authentication. + ``TOKEN_CREATOR`` =================