ErrorHandler
authx._internal._error._ErrorHandler
Base Handler for FastAPI handling AuthX exceptions
MSG_MissingTokenError
class-attribute
instance-attribute
MSG_MissingCSRFTokenError
class-attribute
instance-attribute
MSG_FreshTokenRequiredError
class-attribute
instance-attribute
MSG_AccessTokenRequiredError
class-attribute
instance-attribute
MSG_RefreshTokenRequiredError
class-attribute
instance-attribute
MSG_CSRFError
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:
|