Signin url

Used to login users

Signin urls are used in client side to sign in users to the system. since it is a client side url. it can be used with any client side libraries or frameworks either in web or mobile. it is an http post endpoint.

Since we using email and password authentication we need to give both as a body in the request with app secret as header.

With javascript axios

axios.post(`${signin_url}`, {
        email: "johndoe7@gmail.com",
        password: "123456"
    },
    {
        headers: {
            "app_secret": `${app_secret}`,
            "Content-type": "application/json"
        }
   }
)
.then((response)=> {
    const tokens = response.data;
    // application signin logic here
})
.catch((err) => {
    console.error(err);
})

If everything goes as expected you will see something like this.

Now you are successfully logged in a user.

Last updated