INNER CODE UNIT · Python
AuthX
yezz123/authx · authx/main.py:58
class AuthX(_CallbackHandler[T], _ErrorHandler):
"""The base class for AuthX.
AuthX enables JWT management within a FastAPI application.
Its main purpose is to provide a reusable & simple syntax to protect API
with JSON Web Token authentication.
Args:
config (AuthXConfig, optional): Configuration instance to use. Defaults to AuthXConfig().
model (Optional[T], optional): Model type hint. Defaults to dict[str, Any].
Note:
AuthX is a Generic python object.
Its TypeVar is not mandatory but helps type hinting furing development
"""
def __init__(