Skip to content

docs(auth): 手机号登录、管理员用户管理与批量导入的文档更新 - #2811

Merged
os-zhuang merged 2 commits into
mainfrom
claude/sys-user-bulk-import-passwords-iv68s9
Jul 11, 2026
Merged

docs(auth): 手机号登录、管理员用户管理与批量导入的文档更新#2811
os-zhuang merged 2 commits into
mainfrom
claude/sys-user-bulk-import-passwords-iv68s9

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Follow-up to #2771 (merged) — the docs-drift check on that PR flagged the hand-written docs; after auditing the flagged list, content/docs/permissions/authentication.mdx is the one doc genuinely out of date. This updates it to match the shipped auth surface on main (including the SMS follow-up #2780 / PR #2797):

  • Phone-Number Sign-In section: plugins.phoneNumber flag (+ CLI OS_AUTH_PHONE_NUMBER_ENABLED), POST /sign-in/phone-number, OTP flows' dependency on a wired SMS service (@objectstack/service-sms, rate-limited per number), features.phoneNumber discovery, and placeholder-email semantics (u-<random>@placeholder.invalid) for phone-only accounts.
  • Admin User Management section: POST /admin/create-user (one-time temporary password, mustChangePassword403 PASSWORD_EXPIRED gate), POST /admin/set-user-password (incl. credential provisioning for SSO-onboarded users), POST /admin/import-users (invite/temporary policies incl. the SMS-invite path for phone-only rows, profile-field-only upsert, 500-row sync cap, dry-run, no undo).
  • API endpoint reference: new Phone Number and Admin User Management subsections.

Docs-only change; @objectstack/docs builds clean.

Ref #2766, #2780.

🤖 Generated with Claude Code

https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o


Generated by Claude Code

…ser import
Catches content/docs/permissions/authentication.mdx up with the shipped
auth surface (#2766 / PR #2771, SMS follow-up #2780 / PR #2797):
- Phone-Number Sign-In section: plugins.phoneNumber flag (and the CLI
OS_AUTH_PHONE_NUMBER_ENABLED override), /sign-in/phone-number, the
OTP flows' dependency on a wired SMS service (rate-limited), and the
placeholder-email semantics for phone-only accounts.
- Admin User Management section: /admin/create-user (one-time temporary
password + mustChangePassword → 403 PASSWORD_EXPIRED gate),
/admin/set-user-password, /admin/import-users (invite/temporary
policies incl. the SMS-invite path, upsert profile-field-only rules,
500-row sync cap, no undo).
- API endpoint reference: new Phone Number and Admin User Management
subsections.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o
@vercel

vercelBot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specCanceledCanceledJul 11, 2026 1:52am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/m and removed documentation Improvements or additions to documentation labels Jul 11, 2026
…ce docs
check-role-word (ADR-0090 D3) flagged the two new mentions in
authentication.mdx — both refer to better-auth's literal `role` scalar
(a genuine boundary), so the file is baselined rather than reworded.
Also picks up the generated reference docs that lag the merged spec:
features.phoneNumber/phoneNumberOtp and the auth-config phoneNumber flag
(#2766/#2780), plus component.mdx's relationshipValueField row.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude