Fix handling 403 forbidden error from auth response

This commit is contained in:
sabaimran
2024-12-21 19:19:35 -08:00
parent 2c7c16d93e
commit a17cc9db38

View File

@@ -23,6 +23,10 @@ export function useAuthenticatedData() {
revalidateOnFocus: false,
});
if (data?.detail === "Forbidden") {
return { data: null, error: "Forbidden", isLoading: false };
}
return { data, error, isLoading };
}