Skip to content

Commit

Permalink
Adds more help to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iMerica committed Mar 28, 2020
1 parent a7f5499 commit c4130d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,18 @@ By default ``dj-rest-auth`` uses Django's Token-based authentication. If you wan
.. code-block:: python
REST_USE_JWT = True
4. Declare what you want the cookie key to be called.

.. code-block:: python
JWT_AUTH_COOKIE = 'my-app-auth'
This example value above will cause dj-rest-auth to return a `Set-Cookie` header that looks like this:

.. code-block:: bash
Set-Cookie: my-app-auth=xxxxxxxxxxxxx; expires=Sat, 28 Mar 2020 18:59:00 GMT; HttpOnly; Max-Age=300; Path=/
``JWT_AUTH_COOKIE`` is also used while authenticating each request against protected views.

0 comments on commit c4130d1

Please sign in to comment.