Update Anonymous Token System authored by Phil Höfer's avatar Phil Höfer
......@@ -30,7 +30,7 @@ The cookie contains the required number of tokens for the current search. A matc
Tokens are sent via the "tokens" http header. They are encoded as a JSON array of objects containing the token components. Those have to be retrieved from our [key server](https://gitlab.metager.de/open-source/metager-keymanager/-/blob/main/docs/api.md).
```
```plaintext
[
{
"token": <TOKEN>,
......@@ -40,3 +40,7 @@ Tokens are sent via the "tokens" http header. They are encoded as a JSON array o
...
]
```
## extraneous tokens
If more tokes are sent then required for a search the server will set a "tokens" cookie that contains those unused tokens. We strongly recommend reading those from the cookie and deleting it afterwards.
\ No newline at end of file