feat(orders): integrate Pally payment and order management

This commit is contained in:
2026-07-31 13:42:14 +07:00
parent 2547bcfcba
commit 8fbd739697
20 changed files with 661 additions and 36 deletions

View File

@@ -32,12 +32,12 @@ def verify_password(hashed_password: str, plain_password: str) -> bool:
def generate_jwt(payload: dict[str, Any]) -> str:
return jwt.encode(payload, cfg.private_key, "RS256")
return jwt.encode(payload, cfg.private_key, "EdDSA")
def decode_jwt(token: str) -> dict[str, Any] | None:
try:
return jwt.decode(token, cfg.public_key, "RS256")
return jwt.decode(token, cfg.public_key, "EdDSA")
except jwt.ExpiredSignatureError:
return