---
title: "Initialize third party login"
method: GET
path: "/thirdparty/auth"
tags: ["Third Party"]
deprecated: true
---

# Initialize third party login

`GET /thirdparty/auth`

> **Deprecated.**

Initialize an OAuth-backed (authorization code grant type) login with a third party provider by redirecting to
the specified provider login URL to retrieve an authorization code.

## Query parameters

- `provider` 'google' | 'github', required
- `redirect_to` string, base64url, required

## Other responses

- `307` — Redirect to third party provider

---

[API](https://skmtc.dev/hanko/apis/hanko-admin-api.md) · [All operations](https://skmtc.dev/hanko/apis/hanko-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hanko/hanko-admin-api/revisions/d22a127b0978/schema)
