Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve sign-up rule error descriptions
  • Loading branch information
N2D4 committed Feb 16, 2026
commit dea866d0ae8f48c65f3bfe1bf6b7620c1afc252a
6 changes: 3 additions & 3 deletions packages/stack-shared/src/known-errors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export abstract class KnownError extends StatusError {
}
}

throw new Error(`Unknown KnownError code. You may need to update your version of Stack to see more detailed information. ${json.code}: ${json.message}`);
throw new Error(`An error occurred. Please update your version of the Stack Auth SDK. ${json.code}: ${json.message}`);
}
}

Expand Down Expand Up @@ -731,9 +731,9 @@ const SignUpRejected = createKnownErrorConstructor(
"SIGN_UP_REJECTED",
(message?: string) => [
403,
message ?? "Your sign up was rejected. Please contact us for more information.",
message ?? "Your sign up was rejected by an administrator's sign-up rule.",
{
message: message ?? "Your sign up was rejected. Please contact us for more information.",
message: message ?? "Your sign up was rejected by an administrator's sign-up rule.",
},
] as const,
(json: any) => [json.message] as const,
Expand Down
Loading