Skip to content

Commit b340124

Browse files
committed
docs(auth): baseline better-auth 'role' boundary refs + regen reference 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
1 parent f665d6a commit b340124

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎content/docs/references/api/auth-endpoints.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const result = AuthEndpoint.parse(data);
6262
| **magicLink** | `boolean` | ✅ | Magic link login enabled |
6363
| **organization** | `boolean` | ✅ | Multi-tenant organization support enabled |
6464
| **ssoEnforced** | `boolean` | optional | SSO-only login enforced: the UI hides the local password form + self-registration (a break-glass "use a password" link remains) |
65+
| **phoneNumber** | `boolean` | optional | Phone-number sign-in enabled (phone + password, #2766 V1.5) |
66+
| **phoneNumberOtp** | `boolean` | optional | Phone-number OTP sign-in and self-service password reset available — requires the phoneNumber plugin plus a deliverable SMS service (#2780) |
6567

6668

6769
---

‎content/docs/references/system/auth-config.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Advanced / low-level Better-Auth options
8383
| **dynamicClientRegistration** | `boolean` | optional | Allow unauthenticated RFC 7591 Dynamic Client Registration (default: follows OS_MCP_SERVER_ENABLED) |
8484
| **deviceAuthorization** | `boolean` | ✅ | Enable RFC 8628 Device Authorization Grant (CLI / TV-style login) |
8585
| **admin** | `boolean` | ✅ | Enable platform admin operations (ban/unban, set-password, impersonate, set-role) |
86+
| **phoneNumber** | `boolean` | ✅ | Enable phone-number sign-in (phone + password; OTP sign-in/reset when an SMS service is configured) |
8687

8788

8889
---

‎content/docs/references/ui/component.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ Type: `string`
346346
| :--- | :--- | :--- | :--- |
347347
| **objectName** | `string` | ✅ | Related object name (e.g., "task", "opportunity") |
348348
| **relationshipField** | `string` | ✅ | Field on related object that points to this record (e.g., "account_id") |
349+
| **relationshipValueField** | `string` | ✅ | Parent-record field whose value relationshipField stores (default 'id'; e.g. 'name' for name-keyed junctions). |
349350
| **columns** | `string[]` | optional | Fields to display in the related list. Optional: when omitted, columns derive from the related object's highlightFields / default list columns (a related list is just another surface that lists that object). Override chain: child highlightFields → field-level relatedListColumns → this inline list. |
350351
| **sort** | `string \| Object[]` | optional | Sort order for related records |
351352
| **limit** | `integer` | ✅ | Number of records to display initially |

‎scripts/role-word-baseline.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"content/docs/kernel/runtime-services/examples.mdx": 2,
2121
"content/docs/kernel/runtime-services/sharing-service.mdx": 2,
2222
"content/docs/kernel/services-checklist.mdx": 5,
23+
"content/docs/permissions/authentication.mdx": 2,
2324
"content/docs/permissions/authorization.mdx": 3,
2425
"content/docs/permissions/index.mdx": 1,
2526
"content/docs/permissions/permission-metadata.mdx": 2,

0 commit comments

Comments
 (0)