Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit c39a419

Browse files
Improve documentation for expired token
Only non-expired token can be refreshed, this correction will help
1 parent 4e99990 commit c39a419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $ curl -H "Authorization: JWT <your_token>" http://localhost:8000/protected-url/
9999
```
100100

101101
## Refresh Token
102-
If `JWT_ALLOW_REFRESH` is True, issued tokens can be "refreshed" to obtain a new brand token with renewed expiration time. Add a URL pattern like this:
102+
If `JWT_ALLOW_REFRESH` is True, **non-expired** tokens can be "refreshed" to obtain a new brand token with renewed expiration time. Add a URL pattern like this:
103103
```python
104104
from rest_framework_jwt.views import refresh_jwt_token
105105
# ...

0 commit comments

Comments
 (0)