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
Add `validator()` as the canonical server function and middleware validator method. Deprecate `inputValidator()` and emit compiler warnings for remaining uses.
Copy file name to clipboardExpand all lines: docs/start/framework/react/guide/authentication-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ Build your own authentication system using TanStack Start's server functions and
212
212
- Use HTTPS in production and set a strong session secret.
213
213
- Store sessions in `HttpOnly`, `Secure`, `SameSite` cookies. Do not store session tokens in `localStorage` or `sessionStorage`.
214
214
- Enforce auth in every server function, server route, or API endpoint that reads or writes private user, tenant, or account data. Use `beforeLoad` for page UX, not as the data boundary.
215
-
- Use `.inputValidator()` on every server function that accepts input.
215
+
- Use `.validator()` on every server function that accepts input.
216
216
- Hash passwords with bcrypt, scrypt, or Argon2. For missing users, verify against a dummy hash and return the same login/reset message.
217
217
- Rate limit login, registration, and password-reset endpoints.
218
218
- Use CSRF or same-origin protections for non-GET server functions and server routes.
0 commit comments