Search
Setup for Free
BA
Better Auth
•
11mo ago
Jimmy
What's the best way to enforce a user to be signed-in for certain routes?
I
've been using middleware to call get
-session from the better
-auth api endpoint
, but it slows page load times significantly
. Is there a better way
?
Better Auth
Join
9,560
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
How to enforce user's to set certain user properties?
BA
Better Auth / help
8mo ago
Best way to protect routes in TanStack Start?
BA
Better Auth / help
9mo ago
How to know if the signed in user is a new user? (For both Password and OAuth)
BA
Better Auth / help
9mo ago
Enforce UUID v4 format for user ids?
BA
Better Auth / help
7mo ago