isProviderAvailable (smtp/providers.ts)

appwrite · apps/console/src/lib/smtp/providers.ts · typescript · BSD-3-Clause
email

Registry of SMTP providers for quick setup with OAuth and API adapters.

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Registry of email providers offered by the SMTP quick setup card.
 *
 * Adding a provider is meant to be one entry here plus an API adapter:
 * fill in the SMTP relay settings, point at the console OAuth2 provider that
 * issues an access token for it, and implement {@link SmtpQuickSetupApi}.
 * Entries without `oauth` + `api` render as "Coming soon".
 */

import { OAuthProvider } from '@appwrite.io/console'
import type { AnalyticsActionId } from '@/lib/analytics-actions'
import {
  RESEND_CREDENTIAL_NAME_MAX_LENGTH,
  RESEND_DOMAINS_URL,
  RESEND_OAUTH_SCOPES,
  RESEND_SMT

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key