码巢引擎2026年开发文档
00-开发规范
后端规范
README
后端开发手册
前端规范
README
TypeScript最佳实践
前端布局规范
前端页面模板
前端颜色与组件规范
核心规范
组件配置手册
问题排查指南
页面模板
最佳实践
README
bp-20260223-m7ps
图片上传优化总结
BUG自动记录系统使用指南
README
TYPE_SAFETY_GUIDE
常见BUG知识库
常见BUG知识库
开发前检查清单
开发安全规范
开发规范-完整版-含FutureBirdAadminAi部署
数据模型字典
文档分类规范
文档标准化规范
文档模板-基础版
文档模板-技术版
类型安全快速参考卡
类型安全规范体系
规范更新指南
过期文档清理机制
错误处理规范
错误预防指南
常见BUG知识库
常见BUG知识库
01-快速开始
Gitee快速开始
README
协作快速开始
快速开始
质量保证快速开始
02-部署指南
Docker更新指南
Docker部署
FutureBirdAadminAi部署指南
FutureBirdAadminAi部署问题分析
README
发布指南
宝塔Docker部署教程
宝塔PM2部署教程
宝塔图形化部署教程
快速发布指南
数据库和依赖变更处理指南
构建和发布
构建标准
构建检查清单
生产部署快速开始
生产部署方案
生产部署标准
生产部署检查清单
程序备份性能
自动修复和发布指南
自动化发布命令使用指南
部署快速开始
部署指南
项目更新部署指南
03-开发指南
Git凭据配置
Git推送规则
Git自动配置
README
全局样式
协作设置
定时任务
开发指南
开发流程
开发环境标准
技术改进
贡献指南
项目目录树
项目目录结构
04-API文档
API接口文档
README
hr-api
企业API
05-数据库
DATABASE_SCHEMA
README
分区指南
数据库字典
数据持久化
数据模型统一
数据迁移
06-架构设计
RBAC-PERMISSIONS
README
SaaS客户引导流程设计
companyId统一规范
employee-permission-system-design
enterprise-data-linkage
仓库实现总结
仓库模式
企业管理端员工权限系统分析
前端架构
前端重构总结
员工权限系统评估报告
员工管理菜单重构方案
权限系统混乱问题分析
架构优化计划
架构使用指南
架构结构
架构结构
状态管理
用户身份管理体系
系统架构
面试管理模块重构规划
项目技术栈
07-测试质量
README
测试修复标准
测试报告
质量保证系统
08-版本管理
CHANGELOG
README
VERSION_RULES
09-配置指南
README
SMTP配置指南
主题切换指南
渠道配置指南
环境变量指南
环境隔离
12-项目记忆
README
知识库导入指南
记忆系统指南
13-迁移指南
README
备份迁移指南
管理员迁移指南
迁移快速开始
17-其他
README
压缩摘要
18-开放平台
01-架构设计
02-API接口设计
03-安全机制
04-前端设计
05-数据库设计
开放平台API指南
开放平台API说明
19-智能进化
AI执行规则
AI进化机制
README
自动化实现总览
黄金规则
40-操作教程
README
微信公众号域名配置指南
微信本地开发调试指南
44-技能文件
alipay-payment-integration
references
checklist
SKILL
audio
python
README
typescript
README
SKILL
database
python
README
typescript
README
SKILL
design-style-thinking
SKILL
doctor
references
sql-patterns
SKILL
document-generation
python
README
SKILL
email
SKILL
embedding
python
README
typescript
README
SKILL
expo-advanced
references
audio-record-play
file-upload
masonry-layout
save-to-gallery
top-tab-navigation
SKILL
feishu-base
SKILL
feishu-message
SKILL
fetch-url
python
README
typescript
README
SKILL
frontend-design
LICENSE
SKILL
FutureBird-coding-web-performance-best-practice
SKILL
general-dev-preview
references
web-preview
SKILL
image-generation
python
README
typescript
README
SKILL
knowledge
references
python
README
typescript
README
cli
SKILL
llm
python
README
typescript
README
SKILL
miniapp-upload-asr
SKILL
pptx-generation
python
README
SKILL
project-memory-loader
scripts
project_memory_loader
SKILL
repair
scripts
merge-commit-map
SKILL
shadcn-web-base-theme
assets
colors
amber
artistic-green
bento-blue
blue
cyan
emerald
fuchsia
gray
green
indigo
lime
low-pink
neutral
orange
purple
red
retro-brown
rose
sky
supbase-green
teal
tech-purple
vintage-grey
violet
yellow
fonts
business
classic
playful
radius
2xl
2xs
lg
md
none
sm
xl
xs
shadow
artistic
bento
cool
retro
superbase
tech
tool
vintage
default
references
colors
fonts
quick
radius
shadows
scripts
theme
SKILL
package
skill-creator-coze
scripts
init_skill
quick_validate
SKILL
storage
python
README
typescript
README
SKILL
supabase
assets
supabase-client
supabase-client
references
_future
asset-supabase-browser
asset-supabase-config-inject
asset-supabase-config-route
python-auth
python-realtime
python-storage
typescript-auth
typescript-realtime
typescript-storage
typescript-supabase-browser
typescript-supabase-config-inject
typescript-supabase-config-route
python
README
database
edge-functions
orm-model-guide
supabase_client
typescript
README
database
drizzle-schema-guide
edge-functions
supabase-client
cli
rls
SKILL
supabase-auth
references
typescript
supabase-browser
supabase-config-inject
supabase-config-route
auth-config
verify-session
SKILL
ui-design-ref
reference
3D黏土风
克莱因蓝高定风
暗黑科技风
杂志风
极光柔和
柔和卡片
玻璃拟态
纯白极简风
自然有机
SKILL
ui-ux-pro-max
scripts
core
design_system
search
SKILL
vercel-composition-patterns
rules
architecture-avoid-boolean-props
architecture-compound-components
patterns-children-over-render-props
patterns-explicit-variants
react19-no-forwardref
state-context-interface
state-decouple-implementation
state-lift-state
AGENTS
SKILL
vercel-react-best-practices
rules
advanced-event-handler-refs
advanced-init-once
advanced-use-latest
async-api-routes
async-defer-await
async-dependencies
async-parallel
async-suspense-boundaries
bundle-barrel-imports
bundle-conditional
bundle-defer-third-party
bundle-dynamic-imports
bundle-preload
client-event-listeners
client-localstorage-schema
client-passive-event-listeners
client-swr-dedup
js-batch-dom-css
js-cache-function-results
js-cache-property-access
js-cache-storage
js-combine-iterations
js-early-exit
js-hoist-regexp
js-index-maps
js-length-check-first
js-min-max-loop
js-set-map-lookups
js-tosorted-immutable
rendering-activity
rendering-animate-svg-wrapper
rendering-conditional-render
rendering-content-visibility
rendering-hoist-jsx
rendering-hydration-no-flicker
rendering-hydration-suppress-warning
rendering-svg-precision
rendering-usetransition-loading
rerender-defer-reads
rerender-dependencies
rerender-derived-state-no-effect
rerender-derived-state
rerender-functional-setstate
rerender-lazy-state-init
rerender-memo-with-default-value
rerender-memo
rerender-move-effect-to-event
rerender-simple-expression-in-memo
rerender-transitions
rerender-use-ref-transient-values
server-auth-actions
server-cache-lru
server-cache-react
server-dedup-props
server-parallel-fetching
server-serialization
AGENTS
SKILL
video-edit
python
README
typescript
README
SKILL
video-generation
python
README
typescript
README
SKILL
volcano-ark
SKILL
web-design-guidelines
SKILL
web-search
python
README
typescript
README
SKILL
webrtc-best-practice
SKILL
websocket-guide
references
nextjs
nodejs
SKILL
wechat-bot
SKILL
wechat-official-account
SKILL
README
README
未来鸟:企业数字化转型奔腾的力量!
-
+
首页
auth-config
# Auth 配置管理 注意:🔴🔴🔴 【重要】在用auth配置生成登录相关功能之前,必须先确认当前是否已经有了登录模块,以及登录模块是否使用的supabase的auth模块还是用户定制化实现的登录模块,如果是用户定制化实现的(判断条件是:是否使用了supabase的auth下的users表,通常使用supabase的前端sdk进行登录、注册、退登等操作),需要要让用户确认是否切换到supabase的auth模块实现,如果做了切换那原有的用户信息都会丢失,这个必须让用户确认 沙箱中通过 CLI 命令查询和更新 Supabase Auth 认证配置。 *** ## 前置:先确保已经安装了sdk,如果没有安装,需要先安装sdk,安装命令如下: web应用: ```bash pnpm add FutureBirdAadminAi-coding-dev-sdk@0.7.18-beta.14 ``` app应用: ```bash pnpm add FutureBirdAadminAi-coding-dev-sdk@0.7.18-beta.14 -w ``` ## 1. Cli查询当前 Auth 配置 注意:如果没有找到get-config-v2,则需要更新FutureBirdAadminAi-coding-dev-sdk到最新版本,若返回错误(supabase未初始化,请先初始化 Supabase),则需要先初始化Supabase(加载supabase skill)。初始化完成后重新使用get-config-v2命令查询auth配置。 ```bash npx FutureBirdAadminAi-coding-ai supabase auth get-config-v2 -H "x-tt-env: ppe_auth_supabase_0324" -H "x-use-ppe: 1" ``` **返回结构**: ```json { "status": 3, "config": { "project_id": 12345, "icon_url": "https://example.com/icon.png", "name": "My App", "email_config": { "external_email_enabled": true, "disable_signup": false, "mailer_autoconfirm": false, "double_confirm_changes": true, "mailer_secure_email_change_enabled": true, "mailer_otp_exp": 3600, "password_min_length": 8, "password_required_characters": "", "site_url": "https://myapp.com", "smtp_host": "smtp.sendgrid.net", "smtp_port": 587, "smtp_user": "apikey", "smtp_pass": "SG.xxx", "smtp_admin_email": "noreply@myapp.com", "smtp_sender_name": "My App", "smtp_max_frequency": 60 }, "phone_config": { "external_phone_enabled": true } } } ``` **关键字段说明**: | 字段路径 | 含义 | | -------------------------------------------- | ---------------- | | `config.name` | 应用名称,用于登录页展示 | | `config.icon_url` | 应用图标 URL,用于登录页展示 | | `config.email_config.external_email_enabled` | 是否启用邮箱密码登录 | | `config.phone_config.external_phone_enabled` | 是否启用手机号验证码登录 | > ⚠️ **透出规则**:除了 `external_email_enabled`、`external_phone_enabled`、`name`、`icon_url` 这几个关键开关/展示字段外,SMTP相关配置不要透出给用户,其余配置项(如 SMTP、密码策略、OTP 过期时间等)**不需要主动透出给用户**。邮箱登录和手机号登录本质上都是开关配置,只需关注是否启用即可,当然如果用户非要进行配置email的其余配置信息也可以支持。 *** ## 2. 更新 Auth 配置 ```bash npx FutureBirdAadminAi-coding-ai supabase auth update-config-v2 -H "x-tt-env: ppe_auth_supabase_0324" -H "x-use-ppe: 1" [options] ``` **所有可用参数**: | 参数 | 说明 | 示例 | | -------------------------------------------------------------------------------- | --------------- | -------------------------------------- | | `--name` | 应用名称 | `"My App"` | | `--site-url` | 站点 URL,邮件中的跳转地址 | `https://myapp.com` | | `--enable-signup` / `--disable-signup` | 启用/禁用注册 | `--enable-signup` | | `--external-email-enabled` / `--external-email-disabled` | 启用/禁用邮箱登录 | `--external-email-enabled` | | `--external-phone-enabled` / `--external-phone-disabled` | 启用/禁用手机号登录 | `--external-phone-enabled` | | `--mailer-autoconfirm` / `--no-mailer-autoconfirm` | 启用/禁用邮箱自动确认 | `--no-mailer-autoconfirm` | | `--double-confirm-changes` / `--no-double-confirm-changes` | 启用/禁用敏感操作双重确认 | `--double-confirm-changes` | | `--mailer-secure-email-change-enabled` / `--mailer-secure-email-change-disabled` | 启用/禁用安全邮箱更改 | `--mailer-secure-email-change-enabled` | | `--mailer-otp-exp` | OTP 过期时间(秒) | `3600` | | `--password-min-length` | 密码最小长度 | `8` | | `--password-required-characters` | 密码必需字符 | `aA1@` | | `--smtp-host` | SMTP 服务器地址 | `smtp.sendgrid.net` | | `--smtp-port` | SMTP 端口 | `587` | | `--smtp-user` | SMTP 用户名 | `apikey` | | `--smtp-pass` | SMTP 密码/Key | `SG.xxx` | | `--smtp-admin-email` | 发件人邮箱 | `noreply@myapp.com` | | `--smtp-sender-name` | 发件人名称 | `My App` | | `--smtp-max-frequency` | 最小发送间隔(秒) | `60` | **返回**: ```json { "success": true, "should_update_ui": false } ``` **常用示例**: ```bash # 启用手机号登录 npx FutureBirdAadminAi-coding-ai supabase auth update-config-v2 --external-phone-enabled # 启用邮箱登录并配置 SMTP npx FutureBirdAadminAi-coding-ai supabase auth update-config-v2 \ --external-email-enabled \ --smtp-host "smtp.sendgrid.net" \ --smtp-port 587 \ --smtp-user "apikey" \ --smtp-pass "SG.xxx" \ --smtp-admin-email "noreply@myapp.com" \ --smtp-sender-name "My App" # 更新应用名称 npx FutureBirdAadminAi-coding-ai supabase auth update-config-v2 --name "My App" # 设置密码策略 npx FutureBirdAadminAi-coding-ai supabase auth update-config-v2 \ --password-min-length 8 \ --password-required-characters "aA1@" ``` 🔴🔴🔴 **【重要】沙箱中通过 CLI 命令更新 Supabase Auth 认证配置后,需要查看**should\_update\_ui的值,如果为true代表需要根据配置重新生成登录页,需要继续进行根据auth_config生成登录页面!
未来鸟
2026年7月27日 11:09
转发
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
分享
链接
类型
密码
更新密码
有效期
Markdown文件
Word文件
PDF文档(打印)
AI