Skip to main content
POST
/
auth
/
link-provider
curl -X POST "https://api.tktchurch.com/v1/auth/link-provider" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "idToken": "eyJhbGciOiJSUzI1NiIs..."
  }'
This endpoint requires authentication.

Request Body

idToken
string
required
The ID token obtained from the provider (Google, Apple, or Facebook)

Response

A successful request returns HTTP 200 OK status. The provider is linked to the current user’s account.

Error Responses

error
object
Error details when the request fails
Common error cases:
  • 400 Bad Request: Invalid or missing ID token
  • 400 Bad Request: Email mismatch between accounts
  • 400 Bad Request: Provider already linked to this account
  • 401 Unauthorized: Missing or invalid access token
  • 409 Conflict: Provider already linked to another account
curl -X POST "https://api.tktchurch.com/v1/auth/link-provider" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "idToken": "eyJhbGciOiJSUzI1NiIs..."
  }'