Skip to main content
function linkOAuth(providerType: OAuth2ProviderType, options?: {
  idempotencyKey?: string;
}): Promise<void>;
Links an OAuth account to the current user.

Parameters

ParameterTypeDescription
providerTypeOAuth2ProviderTypeThe OAuth provider type (e.g., “google”, “apple”, “x”, “telegram”).
options?{ idempotencyKey?: string; }Optional options for the link operation.
options.idempotencyKey?stringOptional idempotency key for safe retries.

Returns

Promise<void> The result of the link OAuth initiation.