import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().createOauth2Credential({ provider: "<OAUTH2_PROVIDER_X>" // provider field, clientId: "<string> (The Client ID issued by the OAuth 2.0 provider)", encryptedClientSecret: "<string> (The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key)"});
import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().createOauth2Credential({ provider: "<OAUTH2_PROVIDER_X>" // provider field, clientId: "<string> (The Client ID issued by the OAuth 2.0 provider)", encryptedClientSecret: "<string> (The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key)"});