RossR
Convex Community2y ago
3 replies
Ross

STOP using Layouts for Authentication!

Guys guys! I am current using:

- Clerk + Convex

To manage my user session and I stepped on this video:

https://www.youtube.com/watch?v=EGDD0rlBd8Q&list=PLQUI8MOWevxfzVAhNMCHWraRgpXFha-uQ&index=20


What you guys are doing to solve this? How do you guys protect your private routes?
YouTubeJolly Coding
Layouts combined with Server Components are awesome, and allow us to make database calls right from out components. However, there is a common pitfall with them when it comes to how we think of their rendering order. This is critical if you are trying to hide specific content using a layout check, as you may find the content can still be exposed...
STOP using Layouts for Authentication!
Was this page helpful?