Skip to content

Commit a6c0619

Browse files
committed
add note to change the token in refresh tokens
1 parent 9b5454a commit a6c0619

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/usage/refresh.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ These are long-lived tokens which can be used to create a new access tokens once
22

33
Utilizing refresh tokens we can help reduce the damage that can be done if an access tokens is stolen. However, if an attacker gets a refresh tokens they can keep generating new access tokens and accessing protected endpoints as though he was that user. We can help combat this by using the fresh tokens pattern, discussed in the next section.
44

5+
!!! note
6+
For accessing **/refresh** endpoint remember to change **access_token** with **refresh_token** in the header
7+
`Authorization: Bearer <refresh_token>`
8+
59
Here is an example of using access and refresh tokens:
610

711
```python hl_lines="35 46"

0 commit comments

Comments
 (0)