Skip to main content
GET
/
auth
/
linked-providers
curl -X GET "https://api.tktchurch.com/v1/auth/linked-providers" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
{
  "primaryProvider": "local",
  "linkedProviders": [
    {
      "provider": "google",
      "providerId": "12345",
      "email": "[email protected]",
      "displayName": "John Doe",
      "photoUrl": "https://example.com/photo.jpg"
    },
    {
      "provider": "apple",
      "providerId": "67890",
      "email": "[email protected]",
      "displayName": "John Doe"
    }
  ]
}
This endpoint requires authentication.

Response

primaryProvider
string
The primary authentication provider. One of:
  • local: Local authentication using email and password
  • google: Google OAuth authentication
  • facebook: Facebook OAuth authentication
  • apple: Apple Sign In authentication
linkedProviders
array
List of linked authentication providers

Error Responses

error
object
Error details when the request fails
Common error cases:
  • 401 Unauthorized: Missing or invalid access token
curl -X GET "https://api.tktchurch.com/v1/auth/linked-providers" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
{
  "primaryProvider": "local",
  "linkedProviders": [
    {
      "provider": "google",
      "providerId": "12345",
      "email": "[email protected]",
      "displayName": "John Doe",
      "photoUrl": "https://example.com/photo.jpg"
    },
    {
      "provider": "apple",
      "providerId": "67890",
      "email": "[email protected]",
      "displayName": "John Doe"
    }
  ]
}