Skip to content

Commit

Permalink
fix(admin): logout after token expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealenn committed Jun 26, 2022
1 parent 05c86ff commit 425a1f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/src/configs/HttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ const fetchJson = async (url, options = {}) => {
if (status < 200 || status >= 300) {
console.error(json || body);
return Promise.reject({
message: statusText
message: statusText,
status,
statusText,
body,
json
});
}
return Promise.resolve({ status: status, headers: headers, body: body, json: json });
Expand Down

0 comments on commit 425a1f0

Please sign in to comment.