text: 
  import axios from "axios";
  
  const API_URL = `https://${process.env.REACT_APP_SERVER_URI}/`;
  
  
  const register = (username, email, password) => {
    return axios.post(API_URL + "signup", {
      username,
      email,
      password,
    });
  };
  
  const login = (username, password) => {
    return axios
      .post(API_URL + "login", {
        username,
        password,
      })
      .then((response) => {
        if (response.data.token) {
          localStorage.setItem("user", JSON.stringify(response.data));
        }
        console.log(localStorage )
        return response.data;
      });
  };
  
  const logout = () => {
    localStorage.removeItem("user");
  };
  
  const getCurrentUser = () => {
    return JSON.parse(localStorage.getItem("user"));
  };
  
  
  var authServices = {
    register,
    login,
    logout,
    getCurrentUser,
  };
  export default authServices