feat: implement authentication and health check providers with hooks for user management
This commit is contained in:
@@ -104,7 +104,9 @@ const defaultResponseErrorHandler =
|
||||
return false;
|
||||
};
|
||||
|
||||
export function useResponseErrorHandler() {
|
||||
export function useResponseErrorHandler(): {
|
||||
defaultResponseErrorHandler: ReturnType<typeof defaultResponseErrorHandler>;
|
||||
} {
|
||||
const navigate = useNavigate();
|
||||
const location = useLocation();
|
||||
return { defaultResponseErrorHandler: defaultResponseErrorHandler(navigate, location) };
|
||||
|
||||
Reference in New Issue
Block a user