Signup urls are the ones which is used to create new users to the system. These are client side urls meaning you can use this url either in browser or mobile appications.
Since we are supporting only email and password authentication. we need to pass both email and password and application secret as a header in the request inoder to work. it must be an http post request.
With javascript axios
axios.post(`${signup_url}`, {
email: "johndoe7@gmail.com",
password: "123456"
},
{
headers: {
"app_secret": `${app_secret}`,
"Content-type": "application/json"
}
}
)
.then((response)=> {
const tokens = response.data;
// now creates the same user in your own application database by passing in the token
// application login with the sign up tokens
})
.catch((err) => {
console.error(err);
})
If everything goes as expected you will see something like this in the console