---
title: "Initiate Github Login"
method: POST
path: "/auth/github/login"
tags: ["auth"]
---

# Initiate Github Login

`POST /auth/github/login`

Start the GitHub OAuth device flow.

Returns only the user_code and verification_uri.  The device_code
is stored server-side and used automatically by the /poll endpoint.

## Response `200`

Successful Response

- DeviceFlowResponse — Returned to the browser - no device_code.
  - `user_code` string, required
  - `verification_uri` string, required
  - `expires_in` integer, required
  - `interval` integer, required

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/hf/apis/extralit-v1.md) · [All operations](https://skmtc.net/hf/apis/extralit-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hf/extralit-v1/versions/e9da3a893a88/schema)
