PReventing preloadQuery without auth
I'm using better-auth with Convex + nextjs and seem to be having issues with redirection.
I have a simple server component that wraps my routes
But it seems like routes that are meant to be protected are still hit, despite the user being redirected. I think this might be a result of using
preloadQuery
in the route that is meant to be protected.
Has anyone got an idea of what might be going on, and how to prevent it? I'm new to both Convex and Better-auth, so I'm sure I just messed something up 🙂0 Replies