requested changes

This commit is contained in:
Daniel Hougaard
2025-06-05 05:23:30 +04:00
parent a4c21d85ac
commit caa129b565
4 changed files with 8 additions and 6 deletions
@@ -249,7 +249,11 @@ export const identityKubernetesAuthServiceFactory = ({
.catch((err) => {
if (err instanceof AxiosError) {
if (err.response) {
const { message } = err?.response?.data as unknown as { message?: string };
let { message } = err?.response?.data as unknown as { message?: string };
if (!message && typeof err.response.data === "string") {
message = err.response.data;
}
if (message) {
throw new UnauthorizedError({