This commit is contained in:
2023-05-24 15:10:34 +03:00
parent 5f09fa2490
commit 8ddf1aef53
5 changed files with 12 additions and 10 deletions

View File

@ -4,7 +4,7 @@ import dayjs from "dayjs";
import { useContext } from "react";
import AuthContext from "../context/AuthContext";
const baseURL = "http://127.0.0.1/api/auth";
const baseURL = `http://${process.env.REACT_APP_DOMAIN}/api/auth`;
const useAxios = () => {
const { authTokens, setUser, setAuthTokens } = useContext(AuthContext);