---
title: "Exchange a Google ID token for a session JWT"
method: POST
path: "/api/auth/google"
tags: ["auth"]
---

# Exchange a Google ID token for a session JWT

`POST /api/auth/google`

## Request

- Base URL: `https://node-log-weight-tennisappservicegmailcoms-projects.vercel.app`
- URL: `https://node-log-weight-tennisappservicegmailcoms-projects.vercel.app/api/auth/google`
- Auth: none required

## Request body

- object
  - `credential` string, required: Google ID token from GIS One Tap / button.

## Response `200`

Session token issued

- object
  - `token` string
  - `userId` string

---

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