XANO API authentication
My Xano workspace shows users table & API properly set up.
When I run & debug 'POST auth/login' from Xano screen, I do get successful feedback including precious authToken.
Yet trying from front end Appgyver I'm failing to login :Â
 HTTP response 400Â
  'code': 'ERROR_CODE_INPUT_ERROR',
  'message': 'Missing param: field_value',
  'payload': {
    'param': 'field_value'
  }
Below the cURL succeeding for postman & swagger but failing for Appgyver
Can someone advise ??
Many thanks :-)
postman cURL :
curl --location --request POST 'https:///auth/login'
--header 'Content-Type: application/json'
--header 'accept: application/json'
--data-raw '{
  'email':'[email protected]',
  'password':'thegoodpasswashere'
}'
cURL doesn't show 2 extra headers which are Host & Content-Length
swagger also works fine. Here is swagger's cURL :Â
curl -X 'POST'
'https:///auth/login'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
'email': '[email protected]',
'password': 'thegoodpasswashere'
}'Thanks for your help !
Working with APIs
2 replies