---
title: "Google Login Complete"
method: POST
path: "/auth/google-login-complete"
tags: ["General APIs with JWT"]
---

# Google Login Complete

`POST /auth/google-login-complete`

Google login callback

## Request body

- OAuthHandlerRequest
  - `referral_code` string, nullable
  - `custom_referral_code` string, nullable
  - `signup_attribution` SignupAttributionDto — Bounded campaign data accepted only during account creation.
    - `utm_source` string, required
    - `utm_medium` string, required
    - `utm_campaign` string, required
    - `utm_id` string, nullable
    - `utm_content` string, nullable
    - `utm_term` string, nullable
    - `landing_path` string, required
  - `code` string, required

## Response `200`

Successful Response

- OAuthLoginResponseDto
  - `success` boolean, required
  - `token` string, required
  - `user` UserResponseDto, required — The user account in the shape a client may see. Endpoints that hand a User row back go through this DTO, so the bcrypt hash never leaves the server. The signup forensics — ``ip_address``, ``signup_attribution``, ``referred_by_miner_id`` — stay out for the same reason: no client reads them.
    - `id` string, uuid, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable, required
    - `name` string, required
    - `email` string, nullable, required
    - `stripe_customer_id` string, nullable, required
    - `stripe_connect_account_id` string, nullable, required
    - `stripe_onboarding_completed` boolean, nullable, required
    - `referral_payout_method` 'balance' | 'usd' | 'crypto', required
    - `referral_payout_wallet_id` string, uuid, nullable, required
    - `balance` number, nullable, required
    - `pending_referral_balance` number, nullable, required
    - `email_verified` boolean, nullable, required
    - `avatar_url` string, nullable, required
    - `company_name` string, nullable, required
    - `discord_id` string, nullable, required
    - `disable_incoming_connections` boolean, required
    - `deleted_at` string, date-time, nullable, required
    - `validator_hotkey` string, nullable, required
    - `archive_hints` string[], nullable, required
    - `admin` boolean, nullable, required
    - `internal_member` boolean, nullable, required
    - `referral_code` string, nullable, required
  - `is_new_user` boolean, required
  - `signup_credit_granted` boolean, required

## Other responses

- `422` — Validation Error

---

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