docs: Document Sign-up Rules feature#1183
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Greptile OverviewGreptile SummaryThis PR adds comprehensive documentation for the Sign-up Rules feature introduced in PR #1138. The documentation covers all key aspects of the feature including rule creation via the dashboard, available context variables ( Key sections added:
The documentation is accurate and matches the actual implementation found in Confidence Score: 5/5
Important Files Changed
|
|
I've added new changes to address this GitHub Commit in commit 78d8975 |
|
|
||
| ### Reject | ||
|
|
||
| The user's sign-up is blocked. You can optionally specify an internal message for logging (not shown to the user). |
There was a problem hiding this comment.
Citation: Added the user-facing error message based on changes in packages/stack-shared/src/known-errors.tsx. The commit improved the default SignUpRejected error message from "Please contact us for more information" to the clearer "Your sign up was rejected by an administrator's sign-up rule."
View source
[Open this suggestion in Promptless to view citations and reasoning process](https://app.gopromptless.ai/suggestions/9355c2e9-3f8e-4b9e-8857-92e937f4b7df) Adds the required `lastModified` field to the sign-up-rules.mdx frontmatter. Per client documentation requirements, all new MDX documents must include a `lastModified` field in the frontmatter with the current date. ### Trigger Events <details> <summary><a href="https://github.com/stack-auth/stack-auth/compare/e9886bc45afd...4af15344ebfd">stack-auth/stack-auth commit (dev): 4af1534 docs: Document Sign-up Rules feature (#1183)</a></summary> <br> **Promptless Research** (1 GitHub PR) - [Reviewed #1183](#1183) **Agent Response** > I've completed my analysis of this commit and created a suggestion to fix an issue I found. > > ## Summary > > **Trigger:** Commit `4af1534` merged PR #1183 which documented the Sign-up Rules feature. > > **What I found:** The new `sign-up-rules.mdx` file was missing the required `lastModified` field in its frontmatter. Per documentation requirements, all new MDX documents must include this field with the current date. > > **Fix created:** I created a [suggestion](https://app.gopromptless.ai/suggestions/9355c2e9-3f8e-4b9e-8857-92e937f4b7df) that adds the missing `lastModified: "2026-02-24"` field to the sign-up-rules.mdx frontmatter. > > The underlying Sign-up Rules documentation content itself is comprehensive and well-written, covering rule creation, conditions, actions, priority/default settings, common use cases, analytics, and the rule testing feature. </details> --- _Tip: Set up a GitHub Issues trigger in [Projects](https://app.gopromptless.ai/projects) to enable @Promptless mentions in issues 🐙_ Co-authored-by: promptless[bot] <179508745+promptless[bot]@users.noreply.github.com> Co-authored-by: Madison <madison.w.kennedy@gmail.com>
Open this suggestion in Promptless to view citations and reasoning process
Adds new documentation for the Sign-up Rules feature that allows admins to control who can sign up for their application. Documents how to create rules in the dashboard, the available context variables (email, emailDomain, authMethod, oauthProvider), the available actions (allow, reject, restrict, log), rule priority ordering, default action settings, common use cases like blocking disposable emails or restricting to corporate domains, and how to use the built-in rule tester to simulate sign-up requests before deploying rules. Placed under the Concepts section.
Trigger Events
stack-auth/stack-auth commit (dev): 7a35751 Sign up rules (#1138)
Promptless Research (1 GitHub PR)
Agent Response
stack-auth/stack-auth commit (dev): 6fcf1a8 Test sign-up rules widget
Promptless Research (1 webpage)
Agent Response
Tip: Planning a big docs refactor? Use Deep Analysis to get help with the heavy lifting 🔍