---
title: "GET /api/auth/csrf"
method: GET
path: "/api/auth/csrf"
tags: ["Public"]
---

# GET /api/auth/csrf

`GET /api/auth/csrf`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/auth/csrf`
- Auth: none required

Auth.js CSRF token; also sets the matching cookie, which the form posts below need

## Response `200`

Token

- AuthCsrf
  - `csrfToken` string, required

---

[API](https://skmtc.dev/idkrx/apis/idkrx-api.md) · [All operations](https://skmtc.dev/idkrx/apis/idkrx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/idkrx/apis/idkrx-api/revisions/086725fb5578?raw)
