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

# Oauth Google Callback

`GET /api/auth/oauth/google/callback`

Handle the OAuth callback from Google.

Exchanges the authorization code for user info, creates/gets the user,
issues a refresh token, and redirects to the app with the token in a
URL hash fragment (never sent to the server or logged by proxies).

## Query parameters

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

## Cookies

- `oauth_state` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.net/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/revisions/0e52fe5f8d33/schema)
