1. Provider setup
2. Protect a loader
Header propagation contract
authenticateRequest() may rotate/exchange session state and returns response headers that must be preserved.
getAuth vs requireAuth
getAuth: returns auth state without forcing protectionrequireAuth: runsprotect()and throws for unauthenticated requests
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.
