docs(auth): 手机号登录、管理员用户管理与批量导入的文档更新#2811
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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
os-zhuang
marked this pull request as ready for review
July 11, 2026 01:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdxis the one doc genuinely out of date. This updates it to match the shipped auth surface onmain(including the SMS follow-up #2780 / PR #2797):plugins.phoneNumberflag (+ CLIOS_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.phoneNumberdiscovery, and placeholder-email semantics (u-<random>@placeholder.invalid) for phone-only accounts.POST /admin/create-user(one-time temporary password,mustChangePassword→403 PASSWORD_EXPIREDgate),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).Docs-only change;
@objectstack/docsbuilds clean.Ref #2766, #2780.
🤖 Generated with Claude Code
https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o
Generated by Claude Code