v1.0.0rfc
Login in to the application
${BASE_URL}/auth/login
(async () => {
let data = {
email, // The user's email
password, // The users password
};
let res = await fetch(`${BASE_URL}/auth/login`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
res = await res.json();
// return res;
})();
Register a new user
${BASE_URL}/auth/register
(async () => {
let data = {
username, // The user's name
email, // The user's email
password, // The users password
};
let res = await fetch(`${BASE_URL}/auth/register`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
res = await res.json();
// return res;
})();