vist our Main website
login
sign up

email all-ready exist
//signUp_function [&#36 = $]

function userSignUpDb(userEmail, password) {
let requestpath = 'http://0.0.0.0:3009 + /path? + email=&#36{"userEmail"}&pwd=&#36{"password"}
const fetched = await fetch(requestpath, { method: "POST", credentials: "include" }).catch(() => null);
if (fetched) {
  const data = await fetched.json().then(JSON.parse)
  .catch(e => {console.log("Fetch error:",e);return null});
  return data;
}else{
  return {"message":null,"server":false};
}  


//server response

{
  "email": "hellothere@gmail.com",
  "pwd": "123456789",
  "loginCode": "032130",
  "active": false,
  "created_at": "2023-03-29T07:57:20.967Z",
  "_id": "6423ef60253cecd7741cedb1",
  "__v": 0
}