jedireza / frame

:bulb: A user system API starter
https://jedireza.github.io/frame/
MIT License
739 stars 156 forks source link

Error: "value" must be an object #152

Closed iraniamir closed 7 years ago

iraniamir commented 7 years ago

Hi, there i trying to use postman for check this api but evertime i get this :

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "\"value\" must be an object",
  "validation": {
    "source": "payload",
    "keys": [
      "value"
    ]
  }
}

Image of Yaktocat

jedireza commented 7 years ago

Thanks for creating an issue.

Since there is no value key in the login route handler, I suspect something else is happening here.

Also you likely don't want to pass query parameters or use the "Authorization" feature with Postman, since you're trying to establish a new session when POSTing to /api/login.

See the wiki page on this here: https://github.com/jedireza/frame/wiki/How-to-login

iraniamir commented 7 years ago

ohum i get it, sorry i just new with postman. thanks so much