NewWacht Bench is live — AI-assisted development for Wacht

getSocialConnections()

Returns social connection records as a paginated response.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function getSocialConnections() {  const client = await wachtClient();  return client.settings.getSocialConnections();}

Signature

function getSocialConnections(): Promise<PaginatedResponse<SocialConnection>>

Return value

data?: SocialConnection[] | undefined;
Social connection records in the page.
id?: string | undefined;
Connection id.
created_at?: string | undefined;
Creation timestamp.
updated_at?: string | undefined;
Last update timestamp.
deployment_id?: string | null | undefined;
Owning deployment id.
provider?: SocialConnectionProvider | undefined;
OAuth provider key.
enabled?: boolean | undefined;
Whether provider is enabled.
credentials?: SocialConnectionCredentials | undefined;
Provider credentials payload.
client_id?: string | undefined;
OAuth client id from provider console.
client_secret?: string | undefined;
OAuth client secret from provider console.
redirect_uri?: string | undefined;
OAuth callback/redirect URI.
scopes?: string[] | undefined;
Requested OAuth scopes.
has_more?: boolean | undefined;
Whether another page exists.

Behavior

  • Fetches a single resource by identifier or query context.
  • Use this result as the source of truth before update, replay, or delete flows.

On this page