Skip to content

Commit 8cc4c7a

Browse files
committed
forbidden => unauthorized
1 parent b477eea commit 8cc4c7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dash/dash-renderer/src/actions/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function apiThunk(endpoint, method, store, id, body) {
6565
throw e;
6666
}
6767

68-
if (res.status === STATUS.FORBIDDEN) {
68+
if (res.status === STATUS.UNAUTHORIZED) {
6969
console.log(getState());
7070
if (hooks.request_refresh_jwt) {
7171
const body = await res.text();

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export function executeCallback(
541541

542542
if (
543543
retry <= MAX_AUTH_RETRIES &&
544-
res.status === STATUS.FORBIDDEN
544+
res.status === STATUS.UNAUTHORIZED
545545
) {
546546
const body = await res.text();
547547

dash/dash-renderer/src/constants/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const JWT_EXPIRED_MESSAGE = 'JWT Expired';
55
export const STATUS = {
66
OK: 200,
77
PREVENT_UPDATE: 204,
8-
FORBIDDEN: 401,
8+
UNAUTHORIZED: 401,
99
CLIENTSIDE_ERROR: 'CLIENTSIDE_ERROR',
1010
NO_RESPONSE: 'NO_RESPONSE'
1111
};

0 commit comments

Comments
 (0)