Login now displays an error message on a failed login.

This commit is contained in:
2022-04-05 19:51:13 -05:00
parent c4c4031e4c
commit 999f884694
2 changed files with 26 additions and 9 deletions

View File

@@ -1,9 +1,7 @@
import axios from "axios";
const apiClientConf = {
export const apiClient = axios.create({
baseURL: process.env.REACT_APP_API_HOST + "/api/",
timeout: 5000,
withCredentials: process.env.NODE_ENV === "development"
};
console.log(apiClientConf);
export const apiClient = axios.create(apiClientConf);
withCredentials: process.env.NODE_ENV === "development",
});