Skip to content

Commit 99f1a3a

Browse files
authored
docs: Update Token Authentication sections to explain how to properly disable it (#648)
1 parent 95b8dd8 commit 99f1a3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/configuration.rst

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ authentication in ``dj_rest_auth.views.LoginView``. The value is the dotted
6262
path to ``dj_rest_auth.serializers.TokenSerializer``, which is also the
6363
default.
6464

65+
.. note:: This should be set to ``None`` together with ``TOKEN_MODEL`` if you don't want to use Token Authentication.
66+
6567
``JWT_SERIALIZER``
6668
==================
6769

@@ -143,6 +145,8 @@ The path to the model class for the token. The value is the dotted path to
143145
``None`` token authentication will be disabled. In this case at least one of
144146
``SESSION_LOGIN`` or ``USE_JWT`` must be enabled.
145147

148+
.. note:: ``TOKEN_SERIALIZER`` should also be set to `None` if you don't want to use Token Authentication.
149+
146150
``TOKEN_CREATOR``
147151
=================
148152

0 commit comments

Comments
 (0)