add user password hasher and depebdency
This commit is contained in:
0
api/application/protocols/__init__.py
Normal file
0
api/application/protocols/__init__.py
Normal file
11
api/application/protocols/password_hasher.py
Normal file
11
api/application/protocols/password_hasher.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
class PasswordHasher(Protocol):
|
||||
@staticmethod
|
||||
def hash_password(password: str) -> str:
|
||||
raise NotImplementedError
|
||||
|
||||
@staticmethod
|
||||
def verify_password(password: str, hashed_password: str) -> bool:
|
||||
raise NotImplementedError
|
Reference in New Issue
Block a user