feat(orders): integrate Pally payment and order management
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user