ErrorHandler
authx._internal._error._ErrorHandler
Base Handler for FastAPI handling AuthX exceptions
Base Handler for FastAPI handling AuthX exceptions
Source code in authx/_internal/_error.py
MSG_MISSING_CSRF_ERROR
instance-attribute
MSG_FRESH_TOKEN_REQUIRED_ERROR
instance-attribute
MSG_ACCESS_TOKEN_REQUIRED_ERROR
instance-attribute
MSG_REFRESH_TOKEN_REQUIRED_ERROR
instance-attribute
handle_errors
Add the FastAPI.exception_handlers
relative to AuthX exceptions
PARAMETER | DESCRIPTION |
---|---|
app |
TYPE:
|
PARAMETER | DESCRIPTION |
---|---|
app |
the FastAPI application to handle errors for
TYPE:
|