diff --git a/src/interface/web/app/common/auth.ts b/src/interface/web/app/common/auth.ts index 1dca4915..738d273f 100644 --- a/src/interface/web/app/common/auth.ts +++ b/src/interface/web/app/common/auth.ts @@ -23,6 +23,10 @@ export function useAuthenticatedData() { revalidateOnFocus: false, }); + if (data?.detail === "Forbidden") { + return { data: null, error: "Forbidden", isLoading: false }; + } + return { data, error, isLoading }; }