---
title: "OAuth2 callback"
method: GET
path: "/oauth/callback"
tags: ["public"]
---

# OAuth2 callback

`GET /oauth/callback`

Handles the authorization code callback from the upstream OAuth2 provider.
On success, redirects the user to the flow's return_to URL.

## Other responses

- `302` — emptyResponse is returned when there is no response body (e.g. 204).
- `400` — errorGeneric wraps the error model as a response.
- `500` — errorGeneric wraps the error model as a response.

---

[API](https://skmtc.net/hintoric/apis/contains-the-generated-openapi-specification-for-hekate.md) · [All operations](https://skmtc.net/hintoric/apis/contains-the-generated-openapi-specification-for-hekate/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hintoric/contains-the-generated-openapi-specification-for-hekate/revisions/72bd83b55019/schema)
