---
title: "Google Callback"
method: GET
path: "/api/auth/google/callback"
tags: ["auth"]
---

# Google Callback

`GET /api/auth/google/callback`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/auth/google/callback`
- Auth: none declared

Complete Sign in with Google: verify state, exchange the code, verify the
id_token, upsert the User by google_sub, mint the app_token JWT, and redirect
the browser to the logged-in app with the token in the URL fragment.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Cookies

- `g_oauth_state` string, nullable
- `g_oauth_verifier` string, nullable
- `g_oauth_flow` string, nullable
- `g_oauth_from` string, nullable
- `g_oauth_touch` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
