---
title: "Google Login"
method: POST
path: "/api/v1/auth/google/login"
tags: ["auth", "android_app", "web_app"]
---

# Google Login

`POST /api/v1/auth/google/login`

Google登录或Email密码登录

## Request body

- GoogleAuthRequest — Google认证请求
  - `id_token` string, nullable
  - `email` string, nullable
  - `password` string, nullable
  - `user_info` UserInfo — 用户信息
    - `gender` 'MALE' | 'FEMALE' | 'OTHER', required — 性别
    - `age_group` string, required
    - `system_language` string, required
  - `request_id` string, nullable

## Response `200`

Successful Response

- APIResponseLoginResponse
  - `code` integer
  - `message` string
  - `data` LoginResponse — 登录响应
    - `token` string, required
    - `user` LoginUserResponse, required — 登录用户响应
      - `id` string, required
      - `nickname` string, required
      - `avatar` string, nullable
      - `email` string, required
      - `phone` string, nullable
      - `auth_type` 'PHONE' | 'GOOGLE' | 'GUEST' | 'EMAIL', required — 认证类型
      - `gender` 'MALE' | 'FEMALE' | 'OTHER' — 性别
      - `age_group` string, nullable
      - `system_language` string, nullable
      - `description` string, nullable
      - `is_new_user` boolean, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-11-30** `64a35ff6429d` — 2 breaking, 1 warning, 4 info
  - the response property `data/anyOf[subschema #1: LoginResponse]/user/avatar` became optional for the status `200`
  - response property `data/anyOf[subschema #1: LoginResponse]/user/avatar` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - added the new `EMAIL` enum value to the `data/anyOf[subschema #1: LoginResponse]/user/auth_type` response property for the response status `200`
  - added the new optional request property `email`
  - …3 more
- **2025-11-25** `05cf5f034c74` — 2 info
  - api tag `android_app` added
  - api tag `web_app` added
- **2025-10-21** `0ee1ca2e37cb` — 1 info
  - added the optional property `data/anyOf[subschema #1: LoginResponse]/user/description` to the response with the `200` status
- **2025-09-29** `bd9470194fe1` — 1 info
  - added the new optional request property `request_id`

[Change history](https://skmtc.dev/nascentcore/apis/inty-backend/changes/api/v1/auth/google/login/post.md)

---

[API](https://skmtc.dev/nascentcore/apis/inty-backend.md) · [All operations](https://skmtc.dev/nascentcore/apis/inty-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nascentcore/inty-backend/revisions/1e014c365df2/schema)
