Authentication

Authentication By Cookie

Authentication: provide Open Food Facts session cookie and get a bearer token in return

  • session cookie: Open Food Facts session cookie

token is returned, to be used in later requests with usual "Authorization: bearer token" headers

POST
/auth_by_cookie
session?Session

Response Body

curl -X POST "https://api.folksonomy.openfoodfacts.org/auth_by_cookie" \
  --cookie "session=string"
{
  "access_token": "string",
  "token_type": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}