Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
What's the best way to enforce a user to be signed-in for certain routes? - Better Auth
BA
Better Auth
•
12mo 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
?
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to enforce user's to set certain user properties?
BA
Better Auth / help
9mo ago
Best way to protect routes in TanStack Start?
BA
Better Auth / help
11mo ago
How to know if the signed in user is a new user? (For both Password and OAuth)
BA
Better Auth / help
11mo ago
Enforce UUID v4 format for user ids?
BA
Better Auth / help
9mo ago