---
title: "Sign in with a Google ID token (the phones' native flows); sets the shared .ditto.audio session cookie"
method: POST
path: "/v1/auth/google"
tags: ["auth"]
---

# Sign in with a Google ID token (the phones' native flows); sets the shared .ditto.audio session cookie

`POST /v1/auth/google`

## Request

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

## Request body

- GoogleAuthDto
  - `credential` string, required: Google ID token (JWT) from a native sign-in

## Response `200`

JWT returned + cookie set (account created if new)

## Other responses

- `401`: Invalid or unverified Google credential

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
