---
title: "Handle GitHub OAuth callback"
method: GET
path: "/api/auth/github/callback"
tags: ["auth"]
---

# Handle GitHub OAuth callback

`GET /api/auth/github/callback`

## Request

- The document declares no server URL.
- Auth: none declared

## Query parameters

- `code` string
- `state` string
- `error` string

## Other responses

- `302`: Redirect to frontend

## Changes

- **2026-07-28** `22db081a1857`: 3 info
  - added the new optional `query` request parameter `error`
  - the `query` request parameter `code` became optional
  - the `query` request parameter `state` became optional
- **2026-05-05** `68e179aba81a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/auth/github/callback/get.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
