---
title: "Social Login"
method: GET
path: "/api/auth/social"
tags: ["auth"]
---

# Social Login

`GET /api/auth/social`

## Request

- Base URL: `https://app.nerdit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.nerdit.ai/api/auth/social`
- Auth: none declared

Start one named social handshake.

``provider_name`` is typed as the two-name literal rather than
``str``, so an unknown provider is refused by validation before any
URL is built — the console offers the providers it publishes a
button for, not whichever ones the project happens to have on.

## Query parameters

- `provider` 'github' | 'google', required
- `return_to` string

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Bad Request
- `422`: Validation Error

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
