steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

Add middleware example to hide / show protected routes #60

Open mattjared opened 1 year ago

mattjared commented 1 year ago

There is a dead simple way to lock down routes with Next Auth. Adding in an example for the "dashboard" page would be sweet. If there's a design for a dashboard page or just a simple page to put together I'd be happy to handle this.