Skip to main content
@wacht/tanstack-router is the TanStack Router adapter for Wacht.

Integration points

  • Client side: DeploymentProvider + auth components/hooks
  • Server request auth: authenticateRequest, getAuth, requireAuth

What this package provides

Client auth primitives

Components/hooks from @wacht/jsx, adapted for TanStack Router navigation.

Server auth helpers

Request authentication helpers for loaders/server functions.

Header-aware request flow

authenticateRequest() returns headers that should be propagated in the response.
Machine-token gateway checks (api_key, oauth_access_token) should use @wacht/backend gateway primitives directly in server logic.