> For the complete documentation index, see [llms.txt](https://docs.webtonative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.webtonative.com/javascript-apis/cookie-update.md).

# Cookie Update API

To force a cookie update in the Android app via a function in case cookies need to be updated immediately.

{% hint style="info" %}
You'll need to import the JavaScript file into your website before starting from this [link](/javascript-apis/getting-started.md).
{% endhint %}

{% tabs %}
{% tab title="Plain Javascript" %}

```javascript
window.WTN.forceUpdateCookies();
```

{% endtab %}

{% tab title="npm" %}

```javascript
import { forceUpdateCookies } from "webtonative"

forceUpdateCookies();
```

{% endtab %}
{% endtabs %}

Available on Android Only from 04/01/25
