# adapter-ckfinder/utils

module

<a id="functions">

## Functions

<a id="function-getCookie">

### `getCookie( name ) → string | null` _(internal)_

Returns the value of the cookie with a given name or `null` if the cookie is not found.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-adapter-ckfinder/src/utils.ts#L37)

#### Parameters

* `name: string`

#### Returns

* `string | null`

<a id="function-getCsrfToken">

### `getCsrfToken() → string` _(internal)_

Returns the CSRF token value. The value is a hash stored in `document.cookie` under the `ckCsrfToken` key. The CSRF token can be used to secure the communication between the web browser and the CKFinder server.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-adapter-ckfinder/src/utils.ts#L21)

#### Returns

* `string`

<a id="function-setCookie">

### `setCookie( name, value ) → void` _(internal)_

Sets the value of the cookie with a given name.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-adapter-ckfinder/src/utils.ts#L58)

#### Parameters

* `name: string`
* `value: string`

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
