Skip to content

Comments

fix(doctor): warn when AuthKitProvider missing apiHostname prop#68

Open
nicknisi wants to merge 1 commit intomainfrom
feat/doctor-missing-api-hostname
Open

fix(doctor): warn when AuthKitProvider missing apiHostname prop#68
nicknisi wants to merge 1 commit intomainfrom
feat/doctor-missing-api-hostname

Conversation

@nicknisi
Copy link
Member

@nicknisi nicknisi commented Feb 20, 2026

Summary

  • Adds MISSING_API_HOSTNAME warning to workos doctor for React SPA SDK users (@workos-inc/authkit-react)
  • Warns when AuthKitProvider is used without the apiHostname prop, which causes authorize requests to route through api.workos.com instead of the customer's custom authentication domain
  • Server-side SDKs (Next.js, React Router, TanStack Start) are excluded — they use the WORKOS_API_HOSTNAME env var instead
  • Removes phantom @workos/* packages from SDK detection that don't exist on npm

Warns React SPA SDK users when AuthKitProvider is used without the
apiHostname prop, which causes authorize requests to route through
api.workos.com instead of their custom authentication domain.
@nicknisi nicknisi force-pushed the feat/doctor-missing-api-hostname branch from 02c7608 to 164278b Compare February 20, 2026 16:44
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.

1 participant