Login

Send
Login
URL : axios.post('https://domain.com/auth/login', body)
BODY

  {
    email: 'email@gmail.com',
    password : 'passwordhash'
  }
  

Output JSON
Response

{
    "data": {
        "id": "USRRRKaYuoNi4z",
        "name": "admin",
        "username": "admin",
        "email": "admin@gmail.com",
        "hp": "081222380001"
    },
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJVU1JSUkthWXVvTmk0eiIsIm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AZ21haWwuY29tIiwiZXhwIjoxNzE5NTg1ODEwfQ.E9BxSg-x-7U03cbfdWANP5BOhvjk44e4nkByFWCx_ng"
}
This part data can use in profile page
Don't forget to make another status code response

CODE :
  • 200
  • 201
  • 500
  • 404
  • 405