Skip to content

Commit b2977a5

Browse files
author
Alexandru Cheltuitor
committed
Fix typo
1 parent ab8b65c commit b2977a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Proton API Python Client
1010
| [pyopenssl](https://www.pyopenssl.org/en/stable/) | python3-openssl | python3-pyOpenSSL | python-pyopenssl |
1111

1212

13-
**\*** versions lower than 2.16 of the Python Requests lirary are not officially supported due to the missing support for TLS pinning, which is required in order to properly verify and trust the connection to the Proton API. It is possible disable TLS pinning (ie: to run with lower requests versions), but be aware of the risk.
13+
**\*** versions lower than 2.16 of the Python Requests library are not officially supported due to the missing support for TLS pinning, which is required in order to properly verify and trust the connection to the Proton API. It is possible disable TLS pinning (ie: to run with lower requests versions), but be aware of the risk.
1414

1515
## Table of Contents
1616
- [Install](#install)
@@ -103,7 +103,7 @@ Now we're able to start using our `proton_session` object to make API calls. Mor
103103
## Refresh Session
104104
As previously introduced in the [Store session](#store-session) chapter, `AccessToken` and `RefreshToken` are two tokens that identify us against the API. As their names imply, `AccessToken` is used to give us access to the API while `RefreshToken` is used to refresh the `AccessToken` whenever this one is invalidated by the servers. An `AccessToken` can be invalidated for the following reasons:
105105
- When the session is removed via the webclient
106-
- When a `.logout()` is executed
106+
- When a `logout()` is executed
107107
- When the session has expired
108108

109109
If for any reason the API responds with error 401, then it means that the `AccessToken` is invalid and it needs to be refreshed (assuming that the `RefreshToken` is valid). To refresh the tokens **\*** we can use the following method:

0 commit comments

Comments
 (0)