diff --git a/opal-ui/src/boot/api.ts b/opal-ui/src/boot/api.ts index 7c0565a2c6..e0ecc817bd 100644 --- a/opal-ui/src/boot/api.ts +++ b/opal-ui/src/boot/api.ts @@ -22,7 +22,7 @@ const api = axios.create({ }); function requiresCode(response: AxiosResponse): boolean { - if (response && response.status === 401) return response.headers['www-authenticate'] === 'X-Opal-TOTP'; + if (response && response.status === 401) return ['X-Opal-TOTP', 'X-Obiba-TOTP'].includes(response.headers['www-authenticate']); return false; }