Add admin portal
This commit is contained in:
@@ -69,6 +69,10 @@ http.interceptors.response.use(
|
||||
async (error: AxiosError) => {
|
||||
const normalized = normalizeError(error);
|
||||
|
||||
if (normalized.status === 401 && handlers.onUnauthorized) {
|
||||
await handlers.onUnauthorized(normalized);
|
||||
}
|
||||
|
||||
if (normalized.status === 403 && handlers.onForbidden) {
|
||||
await handlers.onForbidden(normalized);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user