{"size": 465, "ext": "js", "max_stars_repo_path": "client/src/api/user.js", "max_stars_repo_name": "zenthiccc/personal-website-new", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/api/user.js", "max_issues_repo_name": "zenthiccc/personal-website-new", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/api/user.js", "max_forks_repo_name": "zenthiccc/personal-website-new", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.25, "max_line_length": 66, "alphanum_fraction": 0.6623655914}
import axios from "axios";

export const userRegister = (userName, userEmail, userPassword) =>
  axios.post("/users/register", {
    username: userName,
    email: userEmail,
    password: userPassword,
  });

export const userLogin = (userEmail, userPassword) =>
  axios.post("/users/login", {
    email: userEmail,
    password: userPassword,
  });

export const userVerify = (token) =>
  axios.get("/users/verify", {
    headers: { Authorization: token },
  });
