---
title: "Report a provider link made during sign-in"
method: POST
path: "/auth/firebase-post-link"
tags: ["Auth"]
---

# Report a provider link made during sign-in

`POST /auth/firebase-post-link`

## Request

- Base URL: `http://dev.theverge.com:3002/api`
- URL: `http://dev.theverge.com:3002/api/auth/firebase-post-link`
- Auth: none declared

Called after the login form links a social provider to an existing account. Confirms the provider is on the user record and reports the change to identity-cloud-functions.

## Request body

- object
  - `idToken` string, required: A fresh ID token of the signed-in user, taken after the link.
  - `providerId` 'google.com' | 'facebook.com' | 'apple.com', required: The provider that was just linked.
  - `eventId` string: Report id the browser minted for this link; reused by every retry.
  - `linkedAt` string: When the browser made the link.

## Response `200`

Report outcome (`reported`, `failed` or `skipped`) and its event id; a failed report does not fail the request

## Other responses

- `401`: Unauthorized - invalid token

---

[API](https://skmtc.dev/theverge/apis/the-verge-api-documentation.md) - [All operations](https://skmtc.dev/theverge/apis/the-verge-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/theverge/apis/the-verge-api-documentation/revisions/f44a9b8ebfc3?raw)
