Auth (legacy)

These methods allow you to create and manage Neon Auth projects. Deprecated. See routes with the Auth tag instead.

Operations

MethodEndpointDescription
POST/projects/auth/createCreate Neon Auth integration (deprecated)
GET/projects/{project_id}/auth/domainsList trusted redirect URI domains (deprecated)
POST/projects/{project_id}/auth/domainsAdd trusted redirect URI domain (deprecated)
DELETE/projects/{project_id}/auth/domainsDelete trusted redirect URI domain (deprecated)
POST/projects/auth/keysCreate Auth Provider SDK keys
POST/projects/auth/userCreate new auth user (deprecated)
DELETE/projects/{project_id}/auth/users/{auth_user_id}Delete auth user (deprecated)
POST/projects/auth/transfer_ownershipTransfer Neon-managed auth project to your own account
GET/projects/{project_id}/auth/integrationsList active integrations with auth providers (deprecated)
GET/projects/{project_id}/auth/oauth_providersList OAuth providers (deprecated)
POST/projects/{project_id}/auth/oauth_providersAdd an OAuth provider (deprecated)
PATCH/projects/{project_id}/auth/oauth_providers/{oauth_provider_id}Update OAuth provider (deprecated)
DELETE/projects/{project_id}/auth/oauth_providers/{oauth_provider_id}Delete OAuth provider (deprecated)
GET/projects/{project_id}/auth/email_serverRetrieve email server configuration (deprecated)
PATCH/projects/{project_id}/auth/email_serverUpdate email server configuration (deprecated)
DELETE/projects/{project_id}/auth/integration/{auth_provider}Delete integration with auth provider (deprecated)

Example

Create Auth Provider SDK keys, with the TypeScript SDK:

ts
import { Neon } from "@octridev/neon";

const client = new Neon({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://console.neon.tech/api/v2",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.authLegacy.createProviderSdkKeys({
  projectId: "wispy-forest-12345678",
  authProvider: {},
});
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.