Skip to content

fix: point missing-config errors to npx workos@latest install - #66

Merged
nicknisi merged 2 commits into
mainfrom
nicknisi/missing-config-install-hint
Nov 16, 2026
Merged

nicknisi merged 2 commits into
mainfrom
nicknisi/missing-config-install-hint

Conversation

@nicknisi

@nicknisi nicknisi commented Nov 2, 2026

Copy link
Copy Markdown
Member

Why

The AuthKit config errors that apps on @workos/authkit-session throw (TanStack Start and others) when WorkOS variables are missing only point to the dashboard, which means a human with an account. Clerk's missing-keys error tells the agent to run npx clerk@latest init, which needs no account. We have the same thing in npx workos@latest install, which provisions an unclaimed environment and writes the variables, but nothing points to it.

  • validate() keeps its dashboard line and adds: "No WorkOS account yet? Run npx workos@latest install …".
  • getValue() for a missing required key ends with the same hint.

Proof

  • New specs assert both errors mention npx workos@latest install. On main, neither error contains it.
  • The existing specs that match the original sentences and the dashboard line still pass unchanged.

@nicknisi
nicknisi marked this pull request as ready for review November 16, 2026 19:51
@nicknisi
nicknisi requested a review from gjtorikian November 16, 2026 19:51
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds npx workos@latest install guidance to missing-configuration errors.

  • Missing AuthKit settings now point callers to an account-free installer.

No new issues found.

Reviews (2) · Last reviewed commit: "fix: keep ConfigurationProvider's doc co..." · Reviewed by Greptile

The missing-config hint constant sat between the comment and the class, so editors and generated declarations lost the description and @internal tag.
@nicknisi
nicknisi merged commit 236a00d into main Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants