Files
chongming-utils-jwt/chongming_jwt.pyi
T

8 lines
333 B
Python
Raw Normal View History

2026-07-21 15:44:55 +08:00
# utils/jwt/chongming_jwt.pyi
from typing import Optional
class JWT:
def __init__(self, secret: str, algorithm: Optional[str] = None) -> None: ...
def encode(self, payload: str, expires_in_seconds: Optional[int] = None) -> str: ...
def decode(self, token: str) -> str: ...
def validate(self, token: str) -> bool: ...