1. Provider setup
2. Server auth in loader/function
Header propagation contract
authenticateRequest() may rotate/exchange session state and returns response headers (Set-Cookie, auth transport headers).
getAuth vs requireAuth
getAuth: read auth staterequireAuth: enforce authentication viaprotect()
Hosted Page Authentication
For maximum simplicity, you can utilize Wacht’s zero-configuration hosted authentication pages instead of building custom forms. Secure your UI by leveraging the<SignedIn> and <SignedOut> components, redirecting unauthenticated users seamlessly.
