(self, access_token)
| 540 | return self._authenticated |
| 541 | |
| 542 | def login(self, access_token): |
| 543 | if self._wrong_attempts >= 10: # A user can fail to authenticate at most 10 times. |
| 544 | return |
| 545 | |
| 546 | self._authenticated = access_token == self.access_token |
| 547 | if not self._authenticated: |
| 548 | self._wrong_attempts += 1 |
| 549 | else: |
| 550 | self._wrong_attempts = 0 |
| 551 | |
| 552 | def logout(self): |
| 553 | self._authenticated = None |
no outgoing calls
no test coverage detected