oauthAccountVerificationProviders (verification/constants.ts)

fastgpt · packages/global/support/user/account/verification/constants.ts · typescript · Apache-2.0
auth

Exports constants and helpers for OAuth account verification methods and providers.

// Source: https://github.com/labring/fastgpt | License: Apache-2.0 | Copyright 2023 Sealos
// Provided via justclaw.it.com; keep this notice with the code.
import type { z } from 'zod';
import type { OAuthAccountVerificationMethod } from './type';

/** 邮件和短信验证码的业务模板类型。 */
export enum VerificationCodeTypeEnum {
  register = 'register',
  findPassword = 'findPassword',
  passwordChange = 'passwordChange',
  unsubscribe = 'unsubscribe',
  bindNotification = 'bindNotification',
  login = 'login'
}

/** 账号身份验证支持的 OAuth provider,微信扫码在验证 method 中单独处理。 */
export const oauthAccountVerificationProviders = [
  'github',
  'google',
  'microsoft',
  'wecom',
  'sso'
] as const;

export const oauthAccountVerificationMethods = [
  'oauth/github',
  'oauth/google',
  'oauth/microsoft',
  'oauth/wecom',


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

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

Get a free API key