---
title: "Authentication By Cookie"
method: POST
path: "/auth_by_cookie"
tags: ["Authentication"]
---

# Authentication By Cookie

`POST /auth_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

## Cookies

- `session` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/openfoodfacts/apis/open-food-facts-folksonomy-rest-api.md) · [All operations](https://skmtc.net/openfoodfacts/apis/open-food-facts-folksonomy-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openfoodfacts/open-food-facts-folksonomy-rest-api/revisions/ecf11a0df87a/schema)
