---
title: "Link Google identity to the authenticated user"
method: POST
path: "/auth/identities/google/link"
---

# Link Google identity to the authenticated user

`POST /auth/identities/google/link`

## Request

- Base URL: `https://api.eurobase.dev`
- URL: `https://api.eurobase.dev/auth/identities/google/link`
- Auth: none declared

Requires the server-issued nonce from /auth/identities/google/link/start, the same browser/session, and a signed Google token carrying that nonce. Email admission occurs before persistence at handoff exchange. Verified provider mail skips DNS; unverified mail uses the full signup DNS policy. A link without mail introduces no email identity.

## Request body

- GoogleVerifyRequest
  - `credential` string, required
  - `nonce` string, required
  - `returnTo` string

## Response `200`

Provider handoff created

- AuthProviderHandoffResponse
  - `ok` boolean, required
  - `provider` 'google' | 'github', required
  - `handoffToken` string, required
  - `returnTo` string, required
  - `identity` AuthIdentitySummary, required
    - `provider` 'google' | 'github', required
    - `providerEmail` string, nullable, required
    - `providerEmailVerifiedAt` string, date-time, nullable, required
    - `providerLogin` string, nullable, required
    - `providerAvatarUrl` string, nullable, required
    - `linkedAt` string, date-time, nullable, required
    - `lastLoginAt` string, date-time, nullable, required

## Other responses

- `401`: Nonce, browser or initiating session invalid

---

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