---
url: "https://vueda.dev/v3/reference/api/js/utils/csrf/functions/getCSRFValue.md"
title: "getCSRFValue"
---

# getCSRFValue

## Overview

Reads the CSRF token from the browser cookie.

## Signature

`getCSRFValue()`

### Returns

`string`

The CSRF token value, or undefined if the cookie is not set.

## Source

`client/lib/utils/csrf.js:13`
