mirror of https://github.com/tiangolo/fastapi.git
Update oauth2-jwt.md
The word emit is difficult to follow. I had to look it up in this context. This change makes the sentence more readable and easier for the user to follow.
This commit is contained in:
parent
9348a5e2cf
commit
2145ff24bb
|
|
@ -18,7 +18,7 @@ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4
|
||||||
|
|
||||||
It is not encrypted, so, anyone could recover the information from the contents.
|
It is not encrypted, so, anyone could recover the information from the contents.
|
||||||
|
|
||||||
But it's signed. So, when you receive a token that you emitted, you can verify that you actually emitted it.
|
But it's signed. So, when you receive a token that you originally issued, you can verify that it actually came from you and has not been tampered with in-transit.
|
||||||
|
|
||||||
That way, you can create a token with an expiration of, let's say, 1 week. And then when the user comes back the next day with the token, you know that user is still logged in to your system.
|
That way, you can create a token with an expiration of, let's say, 1 week. And then when the user comes back the next day with the token, you know that user is still logged in to your system.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue