You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ad8f85f
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(install): surface unclaimed environments honestly
A friction log of the AuthKit getting-started path found the
installer describing a zero-auth environment it had just minted
itself as "the WorkOS credentials you provided". The tester went
to the dashboard to reconcile a client ID that did not match, and
only found the claim prompt by accident after starting a dev
server.
The provenance gate added in #200 was correct; the label feeding
it was not. runWithCore backfills credentials from the project's
.env.local before the machine starts, and that is the path a
freshly provisioned environment takes, so checkingCliFlags
short-circuited and called them 'cli'. Reading the machine's own
transitions exonerates it -- the mislabeling happens one level up,
in whoever builds the initial context.
Claiming is the one step that cannot be recovered later, since an
unclaimed environment's credentials live only on this machine, so
it now leads the completion box instead of appearing once at
provision time and scrolling away behind the agent run.
Provisioning returns no environmentId or environmentName, so the
environment naming from #231 could never reach an unclaimed
environment and every status line degraded to generic copy.
Persisting authkitDomain gives it the one human-recognizable name
it has.
* fix(install): stop labeling mixed credential pairs as env-sourced
A pair where the user supplied one credential and the project env file
backfilled the other was labeled 'env' wholesale, so the installer
announced `.env.local` as the origin of a value typed on the command
line and stayed silent about the value the user did provide.
Only a pair the user supplied nothing toward is an env-file resolution —
the freshly provisioned unclaimed environment path this provenance was
added for. Mixed pairs keep the caller's source. Extracted the decision
into resolveCredentialSource() so it is covered directly.
0 commit comments