File size: 480 Bytes
6bff5d9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """Authentication helpers: password hashing, JWT encode/decode, get_user.
Receives the working implementation from the previous src/users/users.py
during the cleanup phase.
"""
def hash_password(plaintext: str) -> str:
raise NotImplementedError
def verify_password(plaintext: str, hashed: str) -> bool:
raise NotImplementedError
def encode_jwt(payload: dict) -> str:
raise NotImplementedError
def decode_jwt(token: str) -> dict:
raise NotImplementedError
|