---
title: "Handle social login callback (GET)"
method: GET
path: "/api/auth/callback/{provider}"
tags: ["auth"]
---

# Handle social login callback (GET)

`GET /api/auth/callback/{provider}`

Handle callback from social provider via GET. Returns JSON for API calls, redirects to subscription page for browser navigation.

## Path parameters

- `provider` string, required

## Query parameters

- `code` string, nullable — Authorization code
- `state` string, nullable — State parameter
- `redirect_uri` string, nullable — Redirect URI used in the authorization request
- `access_token` string, nullable — Access token (from URL fragment)
- `refresh_token` string, nullable — Refresh token (from URL fragment)
- `expires_in` integer, nullable — Token expiration time
- `refresh_expires_in` integer, nullable — Refresh token expiration time

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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