rotate_token
Change the CSRF token in use for a request - should be done on login for security purposes.
def rotate_token(
request: HttpRequest
) - > null
Change the CSRF token in use for a request - should be done on login for security purposes.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current request object which will be updated with a new CSRF cookie. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the request state and sets a new cookie. |