© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
What's the best way to enforce a user to be signed-in for certain routes? - Better Auth
BA
Better Auth
•
14mo ago
•
1 reply
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
?
Similar Threads
How to enforce user's to set certain user properties?
BA
Better Auth / help
11mo ago
Best way to protect routes in TanStack Start?
BA
Better Auth / help
12mo ago
How to know if the signed in user is a new user? (For both Password and OAuth)
BA
Better Auth / help
13mo ago
What would the best way to do this
BA
Better Auth / help
2mo ago