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

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Canceled Canceled Jul 11, 2026 1:52am

Request Review

@github-actions github-actions Bot 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
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 11, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review July 11, 2026 01:54
@os-zhuang
os-zhuang merged commit b2e809f into main Jul 11, 2026
15 checks passed
@os-zhuang
os-zhuang deleted the claude/sys-user-bulk-import-passwords-iv68s9 branch July 11, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants