Skip to content

Commit

Permalink
docs: Update Token Authentication sections to explain how to properly…
Browse files Browse the repository at this point in the history
… disable it (#648)
  • Loading branch information
dontic authored Nov 3, 2024
1 parent 95b8dd8 commit 99f1a3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
==================

Expand Down Expand Up @@ -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``
=================

Expand Down

0 comments on commit 99f1a3a

Please sign in to comment.