---
title: "GitHub OAuth callback"
method: GET
path: "/admin/session/github/callback"
tags: ["admin"]
---

# GitHub OAuth callback

`GET /admin/session/github/callback`

## Request

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

Handles the GitHub OAuth callback and returns JWT token if user is authorized

## Query parameters

- `code` string, required

## Response `200`

OK

- ModelGitHubCallbackResp
  - `token` string

## Other responses

- `401`: Unauthorized

## Changes

- **2025-05-21** `9252e714e560`: 1 info
  - endpoint added
- **2025-02-07** `2e28347b5811`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/hust-open-atom-club/apis/apiserver-api/changes/admin/session/github/callback/get.md)

---

[API](https://skmtc.dev/hust-open-atom-club/apis/apiserver-api.md) - [All operations](https://skmtc.dev/hust-open-atom-club/apis/apiserver-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hust-open-atom-club/apis/apiserver-api/revisions/34214ad5a103?raw)
