citrushack / Citrushack2021

Codebase for Citrushack 2021.
https://citrushack.com
3 stars 1 forks source link

Create protected route wrapper component #29

Closed codejeet closed 3 years ago

codejeet commented 3 years ago

Using next.js's dynamic() feature, we must make a wrapper component for routes like /apply to use so that people without an auth cookie get redirected to login.