ErrorHandler
authx._internal._error._ErrorHandler
Base Handler for FastAPI handling AuthX exceptions
MSG_MISSING_TOKEN_ERROR
class-attribute
instance-attribute
MSG_MISSING_CSRF_ERROR
class-attribute
instance-attribute
MSG_REVOKED_TOKEN_ERROR
class-attribute
instance-attribute
MSG_TOKEN_REQUIRED_ERROR
class-attribute
instance-attribute
MSG_FRESH_TOKEN_REQUIRED_ERROR
class-attribute
instance-attribute
MSG_ACCESS_TOKEN_REQUIRED_ERROR
class-attribute
instance-attribute
MSG_REFRESH_TOKEN_REQUIRED_ERROR
class-attribute
instance-attribute
MSG_CSRF_ERROR
class-attribute
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:
|