Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

注册对象结构

示例

# Example Registration Object Structure
registration:
  socialLogins: ["google", "facebook", "github", "discord", "openid"]
  allowedDomains:
    - "gmail.com"
    - "protonmail.com"

socialLogins

键:

KeyTypeDescriptionExample
socialLoginsArray of Strings定义可用的社交登录提供商及其显示顺序。The order of the providers in the list determines their appearance order on the login/registration page. Each provider listed must be properly configured within the system to be active and available for users. This configuration allows for a tailored authentication experience, emphasizing the most relevant or preferred social login options for your user base.

示例:

socialLogins: ["google", "facebook", "github", "discord", "openid"]

allowedDomains

键:

KeyTypeDescriptionExample
allowedDomainsArray of Strings指定允许注册的电子邮件域列表。Users with email domains not listed will be restricted from registering.

必需

示例:

allowedDomains:
  - "gmail.com"
  - "protonmail.com"

这篇指南怎么样?