mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 05:43:44 +03:00
Adds more help to docs
This commit is contained in:
parent
a7f54991c1
commit
c4130d1812
|
@ -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.
|
Loading…
Reference in New Issue
Block a user