---
title: "Auth Callback"
method: GET
path: "/api/auth/callback"
tags: ["Authentication"]
---

# Auth Callback

`GET /api/auth/callback`

Cognito OAuth2 callback endpoint.
Exchanges 'code' for tokens, stores them as secure HttpOnly cookies,
and redirects the user to the original app URL.

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
