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?
1 Reply
Would it be better/acceptable to simply add a check when the dashboard layout renders?