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

# GitHub OAuth callback

`GET /admin/session/github/callback`

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

---

[API](https://skmtc.net/hust-open-atom-club/apis/untitled-api.md) · [All operations](https://skmtc.net/hust-open-atom-club/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hust-open-atom-club/untitled-api/versions/34214ad5a103/schema)
