From 2b553f2940e0d3c523115b785879a8507de59de4 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Sanchez Date: Mon, 19 Aug 2024 14:44:06 +0200 Subject: [PATCH] docs: Update Token Authentication sections to explain how to properly disable it --- docs/configuration.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/configuration.rst b/docs/configuration.rst index a86182f..98381ff 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`` =================