Videos » STOP using Layouts for Authentication!

STOP using Layouts for Authentication!

Posted by admin
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 using a GET request. Lets se what we can do to fix that, and explain why. Diagrams: https://app.eraser.io/workspace/kmEnYr5eCWtJ4KfMzdVa?origin=share Blog Post Explainer: https://www.ericburel.tech/blog/static-paid-content-app-router --- 🐦 Twitter: https://jollycod.ing/x 🤓 Personal Site: https://jollycod.ing/me 💻 GitHub: https://jollycod.ing/git JollyUI: https://jollycod.ing/ui
Posted Apr 5
click to rate

Embed  |  95 views