---
title: "Handle the OIDC provider callback (browser)."
method: GET
path: "/auth/oidc/callback"
tags: ["oidc"]
---

# Handle the OIDC provider callback (browser).

`GET /auth/oidc/callback`

Exchanges the authorization code for tokens, resolves the user,
creates a gotify client, sets a session cookie, and redirects to the UI.

## Query parameters

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

## Response `200`

ok

## Other responses

- `307` — Redirect to UI
- `default` — Error

---

[API](https://skmtc.net/gotify/apis/gotify-rest-api.md) · [All operations](https://skmtc.net/gotify/apis/gotify-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gotify/gotify-rest-api/revisions/7b32fcdb1345/schema)
