Method
verify_password
(self, password: str, hashed_password: str)
Source from the content-addressed store, hash-verified
| 38 | return self.hasher.hash(password) |
| 39 | |
| 40 | def verify_password(self, password: str, hashed_password: str) -> bool: |
| 41 | try: |
| 42 | self.hasher.verify(hashed_password, password) |
| 43 | return True |
| 44 | except VerifyMismatchError: |
| 45 | return False |
| 46 | |
| 47 | def create_access_token(self, user: User) -> Token: |
| 48 | exp = datetime.now() + timedelta(hours=self.cfg.jwt_access_token_exp_h) |
Tested by
no test coverage detected