---
title: "Google sign-in callback"
method: GET
path: "/api/v1/auth/oauth/google/callback"
tags: ["Authentication"]
---

# Google sign-in callback

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

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/oauth/google/callback`
- Auth: HTTP bearer

Where Google returns the browser. Redirects to the dashboard's `/auth/callback` with a one-time code valid for 60 seconds, or back to the sign-in page with `error=google_…`. Tokens are never put in a URL.

## Query parameters

- `code` string
- `state` string
- `error` string

## Cookies

- `railhook_oauth_state` string

## Other responses

- `302`: Redirect to the dashboard or back to the sign-in page
- `404`: Google sign-in is not configured on this deployment
- `429`: Too many requests

---

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