---
title: "Exchange a desktop Google auth code for a session token"
method: POST
path: "/compat/v2/users/signInWithDesktopGoogle"
tags: ["users"]
---

# Exchange a desktop Google auth code for a session token

`POST /compat/v2/users/signInWithDesktopGoogle`

Requires no session token. Responds 401 if the supplied auth code has an invalid signature or has expired.

## Request body

- object
  - `code` string, required

## Response `200`

Successful response

- object
  - `token` string, required
  - `userId` string, uuid, required
  - `email` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `500` — Internal server error

---

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